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

Method TestFile

plumbing/object/commit_test.go:284–288  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

282}
283
284func (s *SuiteCommit) TestFile(c *C) {
285 file, err := s.Commit.File("CHANGELOG")
286 c.Assert(err, IsNil)
287 c.Assert(file.Name, Equals, "CHANGELOG")
288}
289
290func (s *SuiteCommit) TestNumParents(c *C) {
291 c.Assert(s.Commit.NumParents(), Equals, 2)

Callers

nothing calls this directly

Calls 1

FileMethod · 0.45

Tested by

no test coverage detected