MCPcopy Create free account
hub / github.com/go-git/go-git / testReadIndex

Function testReadIndex

plumbing/format/commitgraph/v2/commitgraph_test.go:28–35  ·  view source on GitHub ↗
(c *C, fs billy.Filesystem, path string)

Source from the content-addressed store, hash-verified

26var _ = Suite(&CommitgraphSuite{})
27
28func testReadIndex(c *C, fs billy.Filesystem, path string) commitgraph.Index {
29 reader, err := fs.Open(path)
30 c.Assert(err, IsNil)
31 index, err := commitgraph.OpenFileIndex(reader)
32 c.Assert(err, IsNil)
33 c.Assert(index, NotNil)
34 return index
35}
36
37func testDecodeHelper(c *C, index commitgraph.Index) {
38 // Root commit

Callers 3

TestDecodeMethod · 0.85
TestReencodeMethod · 0.85
TestReencodeInMemoryMethod · 0.85

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected