(c *C)
| 152 | } |
| 153 | |
| 154 | func (s *FsSuite) TestGetSizeOfAllObjectFiles(c *C) { |
| 155 | fs := fixtures.ByTag(".git").One().DotGit() |
| 156 | o := NewObjectStorage(dotgit.New(fs), cache.NewObjectLRUDefault()) |
| 157 | |
| 158 | // Get the size of `tree_walker.go`. |
| 159 | err := o.ForEachObjectHash(func(h plumbing.Hash) error { |
| 160 | size, err := o.EncodedObjectSize(h) |
| 161 | c.Assert(err, IsNil) |
| 162 | c.Assert(size, Not(Equals), int64(0)) |
| 163 | return nil |
| 164 | }) |
| 165 | c.Assert(err, IsNil) |
| 166 | } |
| 167 | |
| 168 | func (s *FsSuite) TestGetFromPackfileMultiplePackfiles(c *C) { |
| 169 | fs := fixtures.ByTag(".git").ByTag("multi-packfile").One().DotGit() |
nothing calls this directly
no test coverage detected