aboutsummaryrefslogtreecommitdiffstats
path: root/tag_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tag_test.go')
-rw-r--r--tag_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/tag_test.go b/tag_test.go
index 180518a..5957678 100644
--- a/tag_test.go
+++ b/tag_test.go
@@ -127,8 +127,14 @@ func (s *TagSuite) TestTagItter(c *C) {
c.Assert(err, IsNil)
c.Assert(count, Equals, 4)
+}
+
+func (s *TagSuite) TestTagIterError(c *C) {
+ r := s.Repositories["https://github.com/git-fixtures/tags.git"]
+ iter, err := r.s.ObjectStorage().Iter(core.TagObject)
+ c.Assert(err, IsNil)
- i = NewTagIter(r, iter)
+ i := NewTagIter(r, iter)
err = i.ForEach(func(t *Tag) error {
return fmt.Errorf("a random error")
})