(c *C)
| 570 | } |
| 571 | |
| 572 | func (s *SuiteDotGit) TestObjectPackIdx(c *C) { |
| 573 | f := fixtures.Basic().ByTag(".git").One() |
| 574 | fs := f.DotGit() |
| 575 | dir := New(fs) |
| 576 | |
| 577 | idx, err := dir.ObjectPackIdx(plumbing.NewHash(f.PackfileHash)) |
| 578 | c.Assert(err, IsNil) |
| 579 | c.Assert(filepath.Ext(idx.Name()), Equals, ".idx") |
| 580 | c.Assert(idx.Close(), IsNil) |
| 581 | } |
| 582 | |
| 583 | func (s *SuiteDotGit) TestObjectPackNotFound(c *C) { |
| 584 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
nothing calls this directly
no test coverage detected