Skip to content

Commit ffbb1a4

Browse files
kshyattjohanmon
authored andcommitted
LibGit2: branch missing test in last_error (JuliaLang#39033)
1 parent 5b5c634 commit ffbb1a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/LibGit2/test/libgit2.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ end
171171
@test findfirst(isequal(LibGit2.Consts.FEATURE_HTTPS), f) !== nothing
172172
end
173173

174+
@testset "No error at first" begin
175+
class, msg = LibGit2.Error.last_error()
176+
@test msg == "No errors"
177+
@test class == LibGit2.Error.Class(0)
178+
end
179+
174180
@testset "OID" begin
175181
z = LibGit2.GitHash()
176182
@test LibGit2.iszero(z)

0 commit comments

Comments
 (0)