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

Method TestRemove

gcs/public_test.go:152–166  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

150}
151
152func (s *PublishedStorageSuite) TestRemove(c *C) {
153 s.PutFile(c, "a/b", []byte("test"))
154
155 err := s.storage.Remove("a/b")
156 c.Check(err, IsNil)
157
158 s.AssertNoFile(c, "a/b")
159
160 s.PutFile(c, "lala/xyz", []byte("test"))
161
162 err = s.prefixedStorage.Remove("xyz")
163 c.Check(err, IsNil)
164
165 s.AssertNoFile(c, "lala/xyz")
166}
167
168func (s *PublishedStorageSuite) TestRemoveMissing(c *C) {
169 c.Check(s.storage.Remove("does/not/exist"), IsNil)

Callers

nothing calls this directly

Calls 4

PutFileMethod · 0.95
AssertNoFileMethod · 0.95
RemoveMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected