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

Method TestEncodeDecode

deb/snapshot_test.go:94–102  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

92}
93
94func (s *SnapshotSuite) TestEncodeDecode(c *C) {
95 snapshot, _ := NewSnapshotFromRepository("snap1", s.repo)
96 s.repo.packageRefs = s.reflist
97
98 snapshot2 := &Snapshot{}
99 c.Assert(snapshot2.Decode(snapshot.Encode()), IsNil)
100 c.Assert(snapshot2.Name, Equals, snapshot.Name)
101 c.Assert(snapshot2.packageRefs, IsNil)
102}
103
104func (s *SnapshotSuite) TestSnapshotFromRepositoryAppStream(c *C) {
105 s.repo.AppStreamFiles = map[string]string{

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
EncodeMethod · 0.45

Tested by

no test coverage detected