From a4fc56a57cf04b5aa460e271761d12294598a2fe Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Mon, 19 Apr 2021 12:21:10 -0400 Subject: [PATCH] LibGit2: branch missing test in last_error (#39033) --- stdlib/LibGit2/test/libgit2.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stdlib/LibGit2/test/libgit2.jl b/stdlib/LibGit2/test/libgit2.jl index 892fb8bb6f3fe..c987438aace86 100644 --- a/stdlib/LibGit2/test/libgit2.jl +++ b/stdlib/LibGit2/test/libgit2.jl @@ -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)