(c *C)
| 249 | } |
| 250 | |
| 251 | func (s *FsSuite) TestIterLargeObjectThreshold(c *C) { |
| 252 | fixtures.ByTag(".git").ByTag("packfile").Test(c, func(f *fixtures.Fixture) { |
| 253 | fs := f.DotGit() |
| 254 | o := NewObjectStorageWithOptions(dotgit.New(fs), cache.NewObjectLRUDefault(), Options{LargeObjectThreshold: 1}) |
| 255 | |
| 256 | iter, err := o.IterEncodedObjects(plumbing.AnyObject) |
| 257 | c.Assert(err, IsNil) |
| 258 | |
| 259 | var count int32 |
| 260 | err = iter.ForEach(func(o plumbing.EncodedObject) error { |
| 261 | count++ |
| 262 | return nil |
| 263 | }) |
| 264 | |
| 265 | c.Assert(err, IsNil) |
| 266 | c.Assert(count, Equals, f.ObjectsCount) |
| 267 | }) |
| 268 | } |
| 269 | |
| 270 | func (s *FsSuite) TestIterWithType(c *C) { |
| 271 | fixtures.ByTag(".git").Test(c, func(f *fixtures.Fixture) { |
nothing calls this directly
no test coverage detected