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

Function checkOwner

object_test.go:81–90  ·  view source on GitHub ↗
(t *testing.T, repo *Repository, obj Object)

Source from the content-addressed store, hash-verified

79}
80
81func checkOwner(t *testing.T, repo *Repository, obj Object) {
82 owner := obj.Owner()
83 if owner == nil {
84 t.Fatal("bad owner")
85 }
86
87 if owner.ptr != repo.ptr {
88 t.Fatalf("bad owner, got %v expected %v\n", owner.ptr, repo.ptr)
89 }
90}
91
92func TestObjectOwner(t *testing.T) {
93 t.Parallel()

Callers 1

TestObjectOwnerFunction · 0.85

Calls 1

OwnerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…