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

Method TestEncodeDecode

deb/local_test.go:57–64  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

55}
56
57func (s *LocalRepoSuite) TestEncodeDecode(c *C) {
58 repo := &LocalRepo{}
59 err := repo.Decode(s.repo.Encode())
60 c.Assert(err, IsNil)
61
62 c.Check(repo.Name, Equals, s.repo.Name)
63 c.Check(repo.Comment, Equals, s.repo.Comment)
64}
65
66func (s *LocalRepoSuite) TestKey(c *C) {
67 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