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

Function checkObject

revparse_test.go:52–60  ·  view source on GitHub ↗
(t *testing.T, obj *Object, id *Oid)

Source from the content-addressed store, hash-verified

50}
51
52func checkObject(t *testing.T, obj *Object, id *Oid) {
53 if obj == nil {
54 t.Fatalf("bad object")
55 }
56
57 if !obj.Id().Equal(id) {
58 t.Fatalf("bad object, expected %s, got %s", id.String(), obj.Id().String())
59 }
60}

Callers 3

TestRevparseFunction · 0.85
TestRevparseSingleFunction · 0.85
TestRevparseExtFunction · 0.85

Calls 3

EqualMethod · 0.80
IdMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…