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

Method TestFindEntryNotFound

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

Source from the content-addressed store, hash-verified

130}
131
132func (s *TreeSuite) TestFindEntryNotFound(c *C) {
133 e, err := s.Tree.FindEntry("not-found")
134 c.Assert(e, IsNil)
135 c.Assert(err, Equals, ErrEntryNotFound)
136 e, err = s.Tree.FindEntry("not-found/not-found/not-found")
137 c.Assert(e, IsNil)
138 c.Assert(err, Equals, ErrDirectoryNotFound)
139}
140
141// Overrides returned plumbing.EncodedObject for given hash.
142// Otherwise, delegates to actual storer to get real object

Callers

nothing calls this directly

Calls 1

FindEntryMethod · 0.80

Tested by

no test coverage detected