(c *C)
| 92 | } |
| 93 | |
| 94 | func (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 | |
| 104 | func (s *SnapshotSuite) TestSnapshotFromRepositoryAppStream(c *C) { |
| 105 | s.repo.AppStreamFiles = map[string]string{ |
nothing calls this directly
no test coverage detected