(c *C)
| 830 | } |
| 831 | |
| 832 | func (s *RemoteRepoCollectionSuite) TestByUUID(c *C) { |
| 833 | _, err := s.collection.ByUUID("some-uuid") |
| 834 | c.Assert(err, ErrorMatches, "*.not found") |
| 835 | |
| 836 | repo, _ := NewRemoteRepo("yandex", "http://mirror.yandex.ru/debian/", "squeeze", []string{"main"}, []string{}, false, false, false, false) |
| 837 | c.Assert(s.collection.Add(repo), IsNil) |
| 838 | |
| 839 | r, err := s.collection.ByUUID(repo.UUID) |
| 840 | c.Assert(err, IsNil) |
| 841 | c.Assert(r, Equals, repo) |
| 842 | |
| 843 | collection := NewRemoteRepoCollection(s.db) |
| 844 | r, err = collection.ByUUID(repo.UUID) |
| 845 | c.Assert(err, IsNil) |
| 846 | c.Assert(r.String(), Equals, repo.String()) |
| 847 | } |
| 848 | |
| 849 | func (s *RemoteRepoCollectionSuite) TestUpdateLoadComplete(c *C) { |
| 850 | repo, _ := NewRemoteRepo("yandex", "http://mirror.yandex.ru/debian/", "squeeze", []string{"main"}, []string{}, false, false, false, false) |
nothing calls this directly
no test coverage detected