(c *C, path string)
| 60 | } |
| 61 | |
| 62 | func (s *PublishedStorageSuite) GetFile(c *C, path string) []byte { |
| 63 | r, err := s.storage.bucket.Object(path).NewReader(context.TODO()) |
| 64 | c.Assert(err, IsNil) |
| 65 | defer func() { _ = r.Close() }() |
| 66 | |
| 67 | body, err := io.ReadAll(r) |
| 68 | c.Assert(err, IsNil) |
| 69 | return body |
| 70 | } |
| 71 | |
| 72 | func (s *PublishedStorageSuite) AssertNoFile(c *C, path string) { |
| 73 | _, err := s.storage.bucket.Object(path).Attrs(context.TODO()) |
no test coverage detected