MCPcopy Index your code
hub / github.com/go-git/go-git / testObjects

Function testObjects

storage/filesystem/dotgit/dotgit_test.go:635–642  ·  view source on GitHub ↗
(c *C, _ billy.Filesystem, dir *DotGit)

Source from the content-addressed store, hash-verified

633}
634
635func testObjects(c *C, _ billy.Filesystem, dir *DotGit) {
636 hashes, err := dir.Objects()
637 c.Assert(err, IsNil)
638 c.Assert(hashes, HasLen, 187)
639 c.Assert(hashes[0].String(), Equals, "0097821d427a3c3385898eb13b50dcbc8702b8a3")
640 c.Assert(hashes[1].String(), Equals, "01d5fa556c33743006de7e76e67a2dfcd994ca04")
641 c.Assert(hashes[2].String(), Equals, "03db8e1fbe133a480f2867aac478fd866686d69e")
642}
643
644func testObjectsWithPrefix(c *C, _ billy.Filesystem, dir *DotGit) {
645 prefix, _ := hex.DecodeString("01d5")

Callers 2

TestObjectsMethod · 0.85
TestObjectsExclusiveMethod · 0.85

Calls 2

StringMethod · 0.65
ObjectsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…