MCPcopy Index your code
hub / github.com/aptly-dev/aptly / TestByUUID

Method TestByUUID

deb/publish_test.go:735–747  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

733}
734
735func (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
749func (s *PublishedRepoCollectionSuite) TestUpdateLoadComplete(c *C) {
750 c.Assert(s.collection.Update(s.repo1), IsNil)

Callers

nothing calls this directly

Calls 4

StringMethod · 0.65
ByUUIDMethod · 0.45
AddMethod · 0.45
LoadCompleteMethod · 0.45

Tested by

no test coverage detected