MCPcopy 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
184func 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
193func TestEmptyOid(t *testing.T) {
194 t.Parallel()

Callers

nothing calls this directly

Calls 2

IsZeroMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…