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

Method TestString

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

Source from the content-addressed store, hash-verified

292}
293
294func (s *SuiteCommit) TestString(c *C) {
295 c.Assert(s.Commit.String(), Equals, ""+
296 "commit 1669dce138d9b841a518c64b10914d88f5e488ea\n"+
297 "Author: Máximo Cuadros Ortiz <mcuadros@gmail.com>\n"+
298 "Date: Tue Mar 31 13:48:14 2015 +0200\n"+
299 "\n"+
300 " Merge branch 'master' of github.com:tyba/git-fixture\n"+
301 "\n",
302 )
303}
304
305func (s *SuiteCommit) TestStringMultiLine(c *C) {
306 hash := plumbing.NewHash("e7d896db87294e33ca3202e536d4d9bb16023db3")

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected