(tarPath string)
| 8 | ) |
| 9 | |
| 10 | func TestLoadArchive(tarPath string) (*ImageArchive, error) { |
| 11 | f, err := os.Open(tarPath) |
| 12 | if err != nil { |
| 13 | return nil, err |
| 14 | } |
| 15 | defer f.Close() |
| 16 | |
| 17 | return NewImageArchive(f) |
| 18 | } |
| 19 | |
| 20 | func TestAnalysisFromArchive(t *testing.T, path string) *image.AnalysisResult { |
| 21 | archive, err := TestLoadArchive(path) |
no test coverage detected