(c *C)
| 97 | } |
| 98 | |
| 99 | func (s *PublishedFileMissingSuite) SetUpTest(c *C) { |
| 100 | collectionFactory := s.context.NewCollectionFactory() |
| 101 | |
| 102 | localRepoCollection := collectionFactory.LocalRepoCollection() |
| 103 | _ = localRepoCollection.ForEach(func(repo *deb.LocalRepo) error { |
| 104 | _ = localRepoCollection.Drop(repo) |
| 105 | return nil |
| 106 | }) |
| 107 | |
| 108 | publishedCollection := collectionFactory.PublishedRepoCollection() |
| 109 | _ = publishedCollection.ForEach(func(published *deb.PublishedRepo) error { |
| 110 | _ = publishedCollection.Remove(s.context, published.Storage, published.Prefix, |
| 111 | published.Distribution, collectionFactory, nil, true, true) |
| 112 | return nil |
| 113 | }) |
| 114 | } |
| 115 | |
| 116 | func (s *PublishedFileMissingSuite) TearDownTest(c *C) { |
| 117 | s.SetUpTest(c) |
no test coverage detected