MCPcopy Index your code
hub / github.com/aptly-dev/aptly / TestDropNonExisting

Method TestDropNonExisting

deb/local_test.go:217–225  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

215}
216
217func (s *LocalRepoCollectionSuite) TestDropNonExisting(c *C) {
218 repo := NewLocalRepo("local3", "Comment 3")
219
220 _, err := s.collection.ByUUID(repo.UUID)
221 c.Check(err, ErrorMatches, "local repo .* not found")
222
223 _ = s.collection.Drop(repo)
224 c.Check(s.collection.Drop(repo), ErrorMatches, "local repo not found")
225}

Callers

nothing calls this directly

Calls 4

NewLocalRepoFunction · 0.85
DropMethod · 0.65
ByUUIDMethod · 0.45
CheckMethod · 0.45

Tested by

no test coverage detected