MCPcopy Index your code
hub / github.com/aptly-dev/aptly / TestPutFile

Method TestPutFile

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

Source from the content-addressed store, hash-verified

136}
137
138func (s *PublishedStorageSuite) TestPutFile(c *C) {
139 err := s.storage.MkDir("ppa/dists/squeeze/")
140 c.Assert(err, IsNil)
141
142 err = s.storage.PutFile("ppa/dists/squeeze/Release", "/dev/null")
143 c.Assert(err, IsNil)
144
145 _, err = os.Stat(filepath.Join(s.storage.rootPath, "ppa/dists/squeeze/Release"))
146 c.Assert(err, IsNil)
147}
148
149func (s *PublishedStorageSuite) TestPutFileReturnsErrorIfSourceMissing(c *C) {
150 err := s.storage.MkDir("ppa/dists/squeeze/")

Callers

nothing calls this directly

Calls 3

MkDirMethod · 0.65
PutFileMethod · 0.65
StatMethod · 0.65

Tested by

no test coverage detected