TestLinkFromPoolMissingSource covers the source-pool open error path.
(c *C)
| 377 | |
| 378 | // TestLinkFromPoolMissingSource covers the source-pool open error path. |
| 379 | func (s *PublishedStorageSuite) TestLinkFromPoolMissingSource(c *C) { |
| 380 | pool := files.NewPackagePool(c.MkDir(), false) |
| 381 | |
| 382 | err := s.storage.LinkFromPool("", "pool/x", "y.deb", pool, "non-existent-pool-key", utils.ChecksumInfo{MD5: "33333333333333333333333333333333"}, false) |
| 383 | c.Check(err, ErrorMatches, ".*no such file or directory.*") |
| 384 | } |
| 385 | |
| 386 | // TestPutFilePublicReadACL covers the applyACL public-read branch and the |
| 387 | // ACL().Set call against the fake server. |
nothing calls this directly
no test coverage detected