(t *testing.T, filepath ...string)
| 771 | } |
| 772 | |
| 773 | func (s *Sensor) AssertReportNotIncludesFiles(t *testing.T, filepath ...string) { |
| 774 | if s.creport == nil { |
| 775 | t.Fatal("No sensor report found") |
| 776 | } |
| 777 | |
| 778 | index := artifactsByFilePath(s.creport.Image.Files) |
| 779 | for _, f := range filepath { |
| 780 | if index[f] != nil { |
| 781 | t.Errorf("Unexpected file %q found in the container report", f) |
| 782 | } |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | func (s *Sensor) AssertMondelIncludesFiles(t *testing.T, filepath ...string) { |
| 787 | if s.mondel == nil { |