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

Method AssertNoFile

gcs/public_test.go:72–75  ·  view source on GitHub ↗
(c *C, path string)

Source from the content-addressed store, hash-verified

70}
71
72func (s *PublishedStorageSuite) AssertNoFile(c *C, path string) {
73 _, err := s.storage.bucket.Object(path).Attrs(context.TODO())
74 c.Assert(errors.Is(err, storage.ErrObjectNotExist), Equals, true)
75}
76
77func (s *PublishedStorageSuite) PutFile(c *C, path string, data []byte) {
78 w := s.storage.bucket.Object(path).NewWriter(context.TODO())

Callers 2

TestRemoveMethod · 0.95
TestRenameFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected