(c *C)
| 130 | } |
| 131 | |
| 132 | func (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 |