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

Method TestTreeFailsWithExistingFiles

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

Source from the content-addressed store, hash-verified

72}
73
74func (s *TreeSuite) TestTreeFailsWithExistingFiles(c *C) {
75 _, err := s.Tree.File("LICENSE")
76 c.Assert(err, IsNil)
77
78 d, err := s.Tree.Tree("LICENSE")
79 c.Assert(d, IsNil)
80 c.Assert(err, Equals, ErrDirectoryNotFound)
81}
82
83func (s *TreeSuite) TestFile(c *C) {
84 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