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

Method TestByKey

deb/package_collection_test.go:55–66  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

53}
54
55func (s *PackageCollectionSuite) TestByKey(c *C) {
56 err := s.collection.Update(s.p)
57 c.Assert(err, IsNil)
58
59 p2, err := s.collection.ByKey(s.p.Key(""))
60 c.Assert(err, IsNil)
61 c.Assert(p2.Equals(s.p), Equals, true)
62
63 c.Check(p2.GetDependencies(0), DeepEquals, []string{"libc6 (>= 2.7)", "alien-arena-data (>= 7.40)", "dpkg (>= 1.6)"})
64 c.Check(p2.Extra()["Priority"], Equals, "extra")
65 c.Check(p2.Files()[0].Filename, Equals, "alien-arena-common_7.40-2_i386.deb")
66}
67
68func (s *PackageCollectionSuite) TestByKeyOld0_3(c *C) {
69 key := []byte("Pi386 vmware-view-open-client 4.5.0-297975+dfsg-4+b1")

Callers

nothing calls this directly

Calls 8

ByKeyMethod · 0.80
EqualsMethod · 0.80
GetDependenciesMethod · 0.80
ExtraMethod · 0.80
FilesMethod · 0.80
UpdateMethod · 0.65
KeyMethod · 0.45
CheckMethod · 0.45

Tested by

no test coverage detected