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

Method SetUpTest

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

Source from the content-addressed store, hash-verified

84var _ = Suite(&LocalRepoCollectionSuite{})
85
86func (s *LocalRepoCollectionSuite) SetUpTest(c *C) {
87 s.db, _ = goleveldb.NewOpenDB(c.MkDir())
88 s.collection = NewLocalRepoCollection(s.db)
89
90 s.list = NewPackageList()
91 _ = s.list.Add(&Package{Name: "lib", Version: "1.7", Architecture: "i386"})
92 _ = s.list.Add(&Package{Name: "app", Version: "1.9", Architecture: "amd64"})
93
94 s.reflist = NewPackageRefListFromPackageList(s.list)
95}
96
97func (s *LocalRepoCollectionSuite) TearDownTest(c *C) {
98 _ = s.db.Close()

Callers

nothing calls this directly

Calls 6

NewOpenDBFunction · 0.92
NewLocalRepoCollectionFunction · 0.85
NewPackageListFunction · 0.85
MkDirMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected