(c *C)
| 733 | } |
| 734 | |
| 735 | func (s *PublishedRepoCollectionSuite) TestByUUID(c *C) { |
| 736 | _, err := s.collection.ByUUID(s.repo1.UUID) |
| 737 | c.Assert(err, ErrorMatches, "*.not found") |
| 738 | |
| 739 | c.Assert(s.collection.Add(s.repo1), IsNil) |
| 740 | |
| 741 | r, err := s.collection.ByUUID(s.repo1.UUID) |
| 742 | c.Assert(err, IsNil) |
| 743 | |
| 744 | err = s.collection.LoadComplete(r, s.factory) |
| 745 | c.Assert(err, IsNil) |
| 746 | c.Assert(r.String(), Equals, s.repo1.String()) |
| 747 | } |
| 748 | |
| 749 | func (s *PublishedRepoCollectionSuite) TestUpdateLoadComplete(c *C) { |
| 750 | c.Assert(s.collection.Update(s.repo1), IsNil) |
nothing calls this directly
no test coverage detected