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

Method TestFileNotFound

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

Source from the content-addressed store, hash-verified

92}
93
94func (s *TreeSuite) TestFileNotFound(c *C) {
95 f, err := s.Tree.File("not-found")
96 c.Assert(f, IsNil)
97 c.Assert(err, Equals, ErrFileNotFound)
98}
99
100func (s *TreeSuite) TestFileFailsWithExistingTrees(c *C) {
101 _, err := s.Tree.Tree("vendor")

Callers

nothing calls this directly

Calls 1

FileMethod · 0.45

Tested by

no test coverage detected