Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-git/go-git
/ TestFile
Method
TestFile
plumbing/object/tree_test.go:88–92 ·
view source on GitHub ↗
(c *C)
Source
from the content-addressed store, hash-verified
86
}
87
88
func
(s *TreeSuite) TestFile(c *C) {
89
f, err := s.Tree.File(
"LICENSE"
)
90
c.Assert(err, IsNil)
91
c.Assert(f.Name, Equals,
"LICENSE"
)
92
}
93
94
func
(s *TreeSuite) TestFileNotFound(c *C) {
95
f, err := s.Tree.File(
"not-found"
)
Callers
nothing calls this directly
Calls
1
File
Method · 0.45
Tested by
no test coverage detected