diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-11 21:28:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-11 21:28:19 +0200 |
commit | 9b45f468c61a0756dd19d09b64c2b1a88cc99ec5 (patch) | |
tree | 0e513815f1ef3765538c19b893ab4990264ae46d /plumbing/object/commit_test.go | |
parent | 3daede53835e8572b2957a016f068781db646567 (diff) | |
parent | efef1479b7948e4f9f310446cfdf360f2cb09596 (diff) | |
download | go-git-9b45f468c61a0756dd19d09b64c2b1a88cc99ec5.tar.gz |
Merge pull request #337 from ajnavarro/repository-log
Add Repository.Log() method (fix #298)
Diffstat (limited to 'plumbing/object/commit_test.go')
-rw-r--r-- | plumbing/object/commit_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plumbing/object/commit_test.go b/plumbing/object/commit_test.go index 8b4ee2a..c1f49db 100644 --- a/plumbing/object/commit_test.go +++ b/plumbing/object/commit_test.go @@ -62,6 +62,8 @@ func (s *SuiteCommit) TestParents(c *C) { c.Assert(err, IsNil) c.Assert(output, DeepEquals, expected) + + i.Close() } func (s *SuiteCommit) TestCommitEncodeDecodeIdempotent(c *C) { @@ -110,14 +112,6 @@ func (s *SuiteCommit) TestNumParents(c *C) { c.Assert(s.Commit.NumParents(), Equals, 2) } -func (s *SuiteCommit) TestHistory(c *C) { - commits, err := s.Commit.History() - c.Assert(err, IsNil) - c.Assert(commits, HasLen, 5) - c.Assert(commits[0].Hash.String(), Equals, s.Commit.Hash.String()) - c.Assert(commits[len(commits)-1].Hash.String(), Equals, "b029517f6300c2da0f4b651b8642506cd6aaf45d") -} - func (s *SuiteCommit) TestString(c *C) { c.Assert(s.Commit.String(), Equals, ""+ "commit 1669dce138d9b841a518c64b10914d88f5e488ea\n"+ |