(c *C)
| 186 | } |
| 187 | |
| 188 | func (s *FsSuite) TestGetSizeOfAllObjectFiles(c *C) { |
| 189 | fs := fixtures.ByTag(".git").One().DotGit() |
| 190 | o := NewObjectStorage(dotgit.New(fs), cache.NewObjectLRUDefault()) |
| 191 | |
| 192 | // Get the size of `tree_walker.go`. |
| 193 | err := o.ForEachObjectHash(func(h plumbing.Hash) error { |
| 194 | size, err := o.EncodedObjectSize(h) |
| 195 | c.Assert(err, IsNil) |
| 196 | c.Assert(size, Not(Equals), int64(0)) |
| 197 | return nil |
| 198 | }) |
| 199 | c.Assert(err, IsNil) |
| 200 | } |
| 201 | |
| 202 | func (s *FsSuite) TestGetFromPackfileMultiplePackfiles(c *C) { |
| 203 | fs := fixtures.ByTag(".git").ByTag("multi-packfile").One().DotGit() |
nothing calls this directly
no test coverage detected