diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-17 09:19:51 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-17 09:19:51 +0100 |
commit | eb57cb07025845868e40e3994ba2ec818fd3b4f7 (patch) | |
tree | abab30e22f524efa913d0f60ffa40d3bd5fdd596 /commit_test.go | |
parent | 491de646e625801d2f809ed4a99c7ace019a3f15 (diff) | |
download | go-git-eb57cb07025845868e40e3994ba2ec818fd3b4f7.tar.gz |
iters: add IsClosed field, fixes #4
Diffstat (limited to 'commit_test.go')
-rw-r--r-- | commit_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/commit_test.go b/commit_test.go new file mode 100644 index 0000000..14c2e74 --- /dev/null +++ b/commit_test.go @@ -0,0 +1,16 @@ +package git + +import ( + . "gopkg.in/check.v1" + "gopkg.in/src-d/go-git.v2/core" +) + +type CommitCommon struct{} + +var _ = Suite(&CommitCommon{}) + +func (s *CommitCommon) TestIterClose(c *C) { + i := &iter{ch: make(chan core.Object, 1)} + i.Close() + i.Close() +} |