(c *C)
| 145 | } |
| 146 | |
| 147 | func (s *SnapshotSuite) TestEncodeDecodeAppStream(c *C) { |
| 148 | snapshot, _ := NewSnapshotFromRepository("snap-as-enc", s.repo) |
| 149 | snapshot.AppStreamFiles = map[string]string{ |
| 150 | "main/dep11/Components-amd64.yml.gz": "ab/cd/Components-amd64.yml.gz", |
| 151 | "main/dep11/icons-48x48.tar.gz": "ef/gh/icons-48x48.tar.gz", |
| 152 | } |
| 153 | |
| 154 | decoded := &Snapshot{} |
| 155 | c.Assert(decoded.Decode(snapshot.Encode()), IsNil) |
| 156 | c.Check(decoded.Name, Equals, snapshot.Name) |
| 157 | c.Check(decoded.AppStreamFiles, DeepEquals, snapshot.AppStreamFiles) |
| 158 | } |
| 159 | |
| 160 | type SnapshotCollectionSuite struct { |
| 161 | PackageListMixinSuite |
nothing calls this directly
no test coverage detected