(c *C)
| 215 | } |
| 216 | |
| 217 | func (s *FsSuite) TestIterLargeObjectThreshold(c *C) { |
| 218 | fixtures.ByTag(".git").ByTag("packfile").Test(c, func(f *fixtures.Fixture) { |
| 219 | fs := f.DotGit() |
| 220 | o := NewObjectStorageWithOptions(dotgit.New(fs), cache.NewObjectLRUDefault(), Options{LargeObjectThreshold: 1}) |
| 221 | |
| 222 | iter, err := o.IterEncodedObjects(plumbing.AnyObject) |
| 223 | c.Assert(err, IsNil) |
| 224 | |
| 225 | var count int32 |
| 226 | err = iter.ForEach(func(o plumbing.EncodedObject) error { |
| 227 | count++ |
| 228 | return nil |
| 229 | }) |
| 230 | |
| 231 | c.Assert(err, IsNil) |
| 232 | c.Assert(count, Equals, f.ObjectsCount) |
| 233 | }) |
| 234 | } |
| 235 | |
| 236 | func (s *FsSuite) TestIterWithType(c *C) { |
| 237 | fixtures.ByTag(".git").Test(c, func(f *fixtures.Fixture) { |
nothing calls this directly
no test coverage detected