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

Method TestCopyFile

utils/copyfile_test.go:22–28  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

20}
21
22func (s *CopyfileSuite) TestCopyFile(c *C) {
23 err := CopyFile(s.source.Name(), s.dest)
24 c.Check(err, Equals, nil)
25
26 _, err = os.Stat(s.dest)
27 c.Check(err, Equals, nil)
28}

Callers

nothing calls this directly

Calls 3

CopyFileFunction · 0.85
StatMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected