MCPcopy Create free account
hub / github.com/libgit2/git2go / TestEmptyOid

Function TestEmptyOid

git_test.go:193–199  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

191}
192
193func TestEmptyOid(t *testing.T) {
194 t.Parallel()
195 _, err := NewOid("")
196 if err == nil || !IsErrorCode(err, ErrorCodeGeneric) {
197 t.Fatal("Should have returned invalid error")
198 }
199}

Callers

nothing calls this directly

Calls 2

NewOidFunction · 0.85
IsErrorCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…