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

Method SetUpTest

utils/compress_test.go:20–23  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

18const testString = "Quick brown fox jumps over black dog and runs away... Really far away... who knows?"
19
20func (s *CompressSuite) SetUpTest(c *C) {
21 s.tempfile, _ = os.CreateTemp(c.MkDir(), "aptly-test")
22 _, _ = s.tempfile.WriteString(testString)
23}
24
25func (s *CompressSuite) TearDownTest(c *C) {
26 _ = s.tempfile.Close()

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
MkDirMethod · 0.65

Tested by

no test coverage detected