(tempDir string, digestWithAlg string)
| 25 | var artifactPath = test.NormalizeRelativePath("../test/data/sigstore-js-2.1.0.tgz") |
| 26 | |
| 27 | func expectedFilePath(tempDir string, digestWithAlg string) string { |
| 28 | var filename string |
| 29 | if runtime.GOOS == "windows" { |
| 30 | filename = fmt.Sprintf("%s.jsonl", strings.ReplaceAll(digestWithAlg, ":", "-")) |
| 31 | } else { |
| 32 | filename = fmt.Sprintf("%s.jsonl", digestWithAlg) |
| 33 | } |
| 34 | |
| 35 | return test.NormalizeRelativePath(fmt.Sprintf("%s/%s", tempDir, filename)) |
| 36 | } |
| 37 | |
| 38 | func TestNewDownloadCmd(t *testing.T) { |
| 39 | testIO, _, _, _ := iostreams.Test() |
no test coverage detected