Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ TestOidZero
Function
TestOidZero
git_test.go:184–191 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
182
}
183
184
func
TestOidZero(t *testing.T) {
185
t.Parallel()
186
var
zeroId Oid
187
188
if
!zeroId.IsZero() {
189
t.Error(
"Zero Oid is not zero"
)
190
}
191
}
192
193
func
TestEmptyOid(t *testing.T) {
194
t.Parallel()
Callers
nothing calls this directly
Calls
2
IsZero
Method · 0.95
Error
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…