(c *C)
| 117 | } |
| 118 | |
| 119 | func (s *LocalRepoCollectionSuite) TestByUUID(c *C) { |
| 120 | _, err := s.collection.ByUUID("some-uuid") |
| 121 | c.Assert(err, ErrorMatches, "*.not found") |
| 122 | |
| 123 | repo := NewLocalRepo("local1", "Comment 1") |
| 124 | c.Assert(s.collection.Add(repo), IsNil) |
| 125 | |
| 126 | r, err := s.collection.ByUUID(repo.UUID) |
| 127 | c.Assert(err, IsNil) |
| 128 | c.Assert(r, Equals, repo) |
| 129 | |
| 130 | collection := NewLocalRepoCollection(s.db) |
| 131 | r, err = collection.ByUUID(repo.UUID) |
| 132 | c.Assert(err, IsNil) |
| 133 | c.Assert(r.String(), Equals, repo.String()) |
| 134 | } |
| 135 | |
| 136 | func (s *LocalRepoCollectionSuite) TestLoadCompleteNoRefKey(c *C) { |
| 137 | repo := NewLocalRepo("local1", "Comment 1") |
nothing calls this directly
no test coverage detected