(t *testing.T, filepath ...string)
| 758 | } |
| 759 | |
| 760 | func (s *Sensor) AssertReportIncludesFiles(t *testing.T, filepath ...string) { |
| 761 | if s.creport == nil { |
| 762 | t.Fatal("No sensor report found") |
| 763 | } |
| 764 | |
| 765 | index := artifactsByFilePath(s.creport.Image.Files) |
| 766 | for _, f := range filepath { |
| 767 | if index[f] == nil { |
| 768 | t.Errorf("Expected file %q not found in the container report", f) |
| 769 | } |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | func (s *Sensor) AssertReportNotIncludesFiles(t *testing.T, filepath ...string) { |
| 774 | if s.creport == nil { |