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

Method TestShortKey

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

Source from the content-addressed store, hash-verified

139}
140
141func (s *PackageSuite) TestShortKey(c *C) {
142 p := NewPackageFromControlFile(s.stanza)
143
144 c.Check(p.ShortKey(""), DeepEquals, []byte("Pi386 alien-arena-common 7.40-2"))
145 c.Check(p.ShortKey("xD"), DeepEquals, []byte("xDPi386 alien-arena-common 7.40-2"))
146}
147
148func (s *PackageSuite) TestStanza(c *C) {
149 p := NewPackageFromControlFile(s.stanza.Copy())

Callers

nothing calls this directly

Calls 3

ShortKeyMethod · 0.80
CheckMethod · 0.45

Tested by

no test coverage detected