(t *testing.T, path string)
| 18 | } |
| 19 | |
| 20 | func TestAnalysisFromArchive(t *testing.T, path string) *image.AnalysisResult { |
| 21 | archive, err := TestLoadArchive(path) |
| 22 | if err != nil { |
| 23 | t.Fatalf("unable to fetch archive: %v", err) |
| 24 | } |
| 25 | |
| 26 | img, err := archive.ToImage() |
| 27 | if err != nil { |
| 28 | t.Fatalf("unable to convert to image: %v", err) |
| 29 | } |
| 30 | |
| 31 | result, err := img.Analyze() |
| 32 | if err != nil { |
| 33 | t.Fatalf("unable to analyze: %v", err) |
| 34 | } |
| 35 | return result |
| 36 | } |
no test coverage detected