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

Method TestEncodeDecode

deb/remote_test.go:291–298  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

289}
290
291func (s *RemoteRepoSuite) TestEncodeDecode(c *C) {
292 repo := &RemoteRepo{}
293 err := repo.Decode(s.repo.Encode())
294 c.Assert(err, IsNil)
295
296 c.Check(repo.Name, Equals, "yandex")
297 c.Check(repo.ArchiveRoot, Equals, "http://mirror.yandex.ru/debian/")
298}
299
300func (s *RemoteRepoSuite) TestKey(c *C) {
301 c.Assert(len(s.repo.Key()), Equals, 37)

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
EncodeMethod · 0.45
CheckMethod · 0.45

Tested by

no test coverage detected