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

Method TestTree

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

Source from the content-addressed store, hash-verified

90}
91
92func (s *SuiteCommit) TestTree(c *C) {
93 tree, err := s.Commit.Tree()
94 c.Assert(err, IsNil)
95 c.Assert(tree.ID().String(), Equals, "eba74343e2f15d62adedfd8c883ee0262b5c8021")
96}
97
98func (s *SuiteCommit) TestParents(c *C) {
99 expected := []string{

Callers

nothing calls this directly

Calls 3

TreeMethod · 0.65
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected