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

Method TestLoadCompleteNoRefKey

deb/local_test.go:136–146  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

134}
135
136func (s *LocalRepoCollectionSuite) TestLoadCompleteNoRefKey(c *C) {
137 repo := NewLocalRepo("local1", "Comment 1")
138 c.Assert(s.collection.Update(repo), IsNil)
139
140 r, err := s.collection.ByName("local1")
141 c.Assert(err, IsNil)
142
143 c.Assert(s.collection.LoadComplete(r), IsNil)
144 c.Assert(r.packageRefs, NotNil)
145 c.Assert(r.NumPackages(), Equals, 0)
146}
147
148func (s *LocalRepoCollectionSuite) TestUpdateLoadComplete(c *C) {
149 repo := NewLocalRepo("local1", "Comment 1")

Callers

nothing calls this directly

Calls 5

NewLocalRepoFunction · 0.85
UpdateMethod · 0.65
ByNameMethod · 0.45
LoadCompleteMethod · 0.45
NumPackagesMethod · 0.45

Tested by

no test coverage detected