MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestAddLen

Method TestAddLen

deb/list_test.go:126–135  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

124}
125
126func (s *PackageListSuite) TestAddLen(c *C) {
127 c.Check(s.list.Len(), Equals, 0)
128 c.Check(s.list.Add(s.p1), IsNil)
129 c.Check(s.list.Len(), Equals, 1)
130 c.Check(s.list.Add(s.p2), IsNil)
131 c.Check(s.list.Len(), Equals, 1)
132 c.Check(s.list.Add(s.p3), IsNil)
133 c.Check(s.list.Len(), Equals, 2)
134 c.Check(s.list.Add(s.p4), ErrorMatches, "package already exists and is different: .*")
135}
136
137func (s *PackageListSuite) TestRemove(c *C) {
138 c.Check(s.list.Add(s.p1), IsNil)

Callers

nothing calls this directly

Calls 3

CheckMethod · 0.45
LenMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected