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

Function TestPanicImmediately

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

Source from the content-addressed store, hash-verified

38}
39
40func TestPanicImmediately(t *testing.T) {
41 basePath := setupForArchive(t)
42 if runtime.GOOS == "windows" { // See line 63
43 defer t.Cleanup(func() {
44 cleanUpTemp(basePath)
45 })
46 }
47
48 newPath := filepath.Join(basePath, "test.txt")
49 _, err := os.Stat(newPath)
50 assert.Nil(t, err)
51}
52
53func setupForArchive(t *testing.T) string {
54 dir := filepath.ToSlash(t.TempDir())

Callers

nothing calls this directly

Calls 3

setupForArchiveFunction · 0.85
cleanUpTempFunction · 0.85
CleanupMethod · 0.45

Tested by

no test coverage detected