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

Method TestTree

plumbing/object/commit_test.go:48–52  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

46}
47
48func (s *SuiteCommit) TestTree(c *C) {
49 tree, err := s.Commit.Tree()
50 c.Assert(err, IsNil)
51 c.Assert(tree.ID().String(), Equals, "eba74343e2f15d62adedfd8c883ee0262b5c8021")
52}
53
54func (s *SuiteCommit) TestParents(c *C) {
55 expected := []string{

Callers

nothing calls this directly

Calls 3

TreeMethod · 0.65
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected