MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / setupForArchive

Function setupForArchive

pkg/cmd/package/support/pack_test.go:53–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func setupForArchive(t *testing.T) string {
54 dir := filepath.ToSlash(t.TempDir())
55 _, err := os.Create(dir + "/test.txt")
56 if err != nil {
57 panic(err)
58 }
59
60 return dir
61}
62
63// TODO Test and potentially remove manual clean-up when go version >= 1.20.0
64// cleanUpTemp is a temporary solution for windows to https://github.com/golang/go/issues/51442.

Callers 2

TestPanicImmediatelyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected