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

Method TestPrepare

deb/changes_test.go:151–159  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

149}
150
151func (s *ChangesSuite) TestPrepare(c *C) {
152 changes, err := NewChanges("testdata/changes/hardlink_0.2.1_amd64.changes")
153 c.Assert(err, IsNil)
154 err = changes.Prepare()
155 c.Assert(err, IsNil)
156
157 _, err = os.Stat(filepath.Join(changes.TempDir, "hardlink_0.2.1_amd64.changes"))
158 c.Check(err, IsNil)
159}
160
161func (s *ChangesSuite) TestPackageQuery(c *C) {
162 changes, err := NewChanges(s.Path)

Callers

nothing calls this directly

Calls 4

PrepareMethod · 0.95
NewChangesFunction · 0.85
StatMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected