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

Method TestTreeFailsWithExistingFiles

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

Source from the content-addressed store, hash-verified

77}
78
79func (s *TreeSuite) TestTreeFailsWithExistingFiles(c *C) {
80 _, err := s.Tree.File("LICENSE")
81 c.Assert(err, IsNil)
82
83 d, err := s.Tree.Tree("LICENSE")
84 c.Assert(d, IsNil)
85 c.Assert(err, Equals, ErrDirectoryNotFound)
86}
87
88func (s *TreeSuite) TestFile(c *C) {
89 f, err := s.Tree.File("LICENSE")

Callers

nothing calls this directly

Calls 2

TreeMethod · 0.65
FileMethod · 0.45

Tested by

no test coverage detected