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

Method TestRenameFile

gcs/public_test.go:187–195  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

185}
186
187func (s *PublishedStorageSuite) TestRenameFile(c *C) {
188 s.PutFile(c, "src", []byte("payload"))
189
190 err := s.storage.RenameFile("src", "dst")
191 c.Check(err, IsNil)
192
193 c.Check(s.GetFile(c, "dst"), DeepEquals, []byte("payload"))
194 s.AssertNoFile(c, "src")
195}
196
197func (s *PublishedStorageSuite) TestSymLink(c *C) {
198 s.PutFile(c, "a/b", []byte("test"))

Callers

nothing calls this directly

Calls 5

PutFileMethod · 0.95
GetFileMethod · 0.95
AssertNoFileMethod · 0.95
RenameFileMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected