Skip to content

Commit

Permalink
LibGit2: branch missing test in last_error (JuliaLang#39033)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored Apr 19, 2021
1 parent 3d08f82 commit a4fc56a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/LibGit2/test/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ end
@test findfirst(isequal(LibGit2.Consts.FEATURE_HTTPS), f) !== nothing
end

@testset "No error at first" begin
class, msg = LibGit2.Error.last_error()
@test msg == "No errors"
@test class == LibGit2.Error.Class(0)
end

@testset "OID" begin
z = LibGit2.GitHash()
@test LibGit2.iszero(z)
Expand Down

0 comments on commit a4fc56a

Please sign in to comment.