MCPcopy
hub / github.com/go-git/go-git / TestFileFailsWithExistingTrees

Method TestFileFailsWithExistingTrees

plumbing/object/tree_test.go:100–107  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

98}
99
100func (s *TreeSuite) TestFileFailsWithExistingTrees(c *C) {
101 _, err := s.Tree.Tree("vendor")
102 c.Assert(err, IsNil)
103
104 f, err := s.Tree.File("vendor")
105 c.Assert(f, IsNil)
106 c.Assert(err, Equals, ErrFileNotFound)
107}
108
109func (s *TreeSuite) TestSize(c *C) {
110 size, err := s.Tree.Size("LICENSE")

Callers

nothing calls this directly

Calls 2

TreeMethod · 0.65
FileMethod · 0.45

Tested by

no test coverage detected