MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestFilepathList

Method TestFilepathList

azure/package_pool_test.go:67–81  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

65}
66
67func (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
83func (s *PackagePoolSuite) TestRemove(c *C) {
84 _, _ = s.pool.Import(s.debFile, "a.deb", &utils.ChecksumInfo{}, false, s.cs)

Callers

nothing calls this directly

Calls 3

FilepathListMethod · 0.65
ImportMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected