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

Method TestFile

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

Source from the content-addressed store, hash-verified

327}
328
329func (s *SuiteCommit) TestFile(c *C) {
330 file, err := s.Commit.File("CHANGELOG")
331 c.Assert(err, IsNil)
332 c.Assert(file.Name, Equals, "CHANGELOG")
333}
334
335func (s *SuiteCommit) TestNumParents(c *C) {
336 c.Assert(s.Commit.NumParents(), Equals, 2)

Callers

nothing calls this directly

Calls 1

FileMethod · 0.45

Tested by

no test coverage detected