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

Method SetUpTest

files/public_test.go:102–109  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

100var _ = Suite(&PublishedStorageSuite{})
101
102func (s *PublishedStorageSuite) SetUpTest(c *C) {
103 s.root = c.MkDir()
104 s.storage = NewPublishedStorage(filepath.Join(s.root, "public"), "", "")
105 s.storageSymlink = NewPublishedStorage(filepath.Join(s.root, "public_symlink"), "symlink", "")
106 s.storageCopy = NewPublishedStorage(filepath.Join(s.root, "public_copy"), "copy", "")
107 s.storageCopySize = NewPublishedStorage(filepath.Join(s.root, "public_copysize"), "copy", "size")
108 s.cs = NewMockChecksumStorage()
109}
110
111func (s *PublishedStorageSuite) TestLinkMethodField(c *C) {
112 c.Assert(s.storage.linkMethod, Equals, LinkMethodHardLink)

Callers

nothing calls this directly

Calls 3

NewMockChecksumStorageFunction · 0.85
NewPublishedStorageFunction · 0.70
MkDirMethod · 0.65

Tested by

no test coverage detected