(c *C)
| 65 | } |
| 66 | |
| 67 | func (s *PackagePoolSuite) TestFilepathList(c *C) { |
| 68 | list, err := s.pool.FilepathList(nil) |
| 69 | c.Check(err, IsNil) |
| 70 | c.Check(list, DeepEquals, []string{}) |
| 71 | |
| 72 | _, _ = s.pool.Import(s.debFile, "a.deb", &utils.ChecksumInfo{}, false, s.cs) |
| 73 | _, _ = s.pool.Import(s.debFile, "b.deb", &utils.ChecksumInfo{}, false, s.cs) |
| 74 | |
| 75 | list, err = s.pool.FilepathList(nil) |
| 76 | c.Check(err, IsNil) |
| 77 | c.Check(list, DeepEquals, []string{ |
| 78 | "c7/6b/4bd12fd92e4dfe1b55b18a67a669_a.deb", |
| 79 | "c7/6b/4bd12fd92e4dfe1b55b18a67a669_b.deb", |
| 80 | }) |
| 81 | } |
| 82 | |
| 83 | func (s *PackagePoolSuite) TestRemove(c *C) { |
| 84 | _, _ = s.pool.Import(s.debFile, "a.deb", &utils.ChecksumInfo{}, false, s.cs) |
nothing calls this directly
no test coverage detected