(c *C)
| 219 | } |
| 220 | |
| 221 | func (s *PublishedStorageSuite) TestFileExists(c *C) { |
| 222 | s.PutFile(c, "a/b", []byte("test")) |
| 223 | |
| 224 | exists, err := s.storage.FileExists("a/b") |
| 225 | c.Check(err, IsNil) |
| 226 | c.Check(exists, Equals, true) |
| 227 | |
| 228 | exists, err = s.storage.FileExists("a/b.invalid") |
| 229 | c.Check(err, IsNil) |
| 230 | c.Check(exists, Equals, false) |
| 231 | } |
| 232 | |
| 233 | func (s *PublishedStorageSuite) TestObjectPath(c *C) { |
| 234 | st := &PublishedStorage{prefix: "root"} |
nothing calls this directly
no test coverage detected