MCPcopy
hub / github.com/slimtoolkit/slim / AssertReportIncludesFiles

Method AssertReportIncludesFiles

pkg/test/e2e/sensor/sensor.go:760–771  ·  view source on GitHub ↗
(t *testing.T, filepath ...string)

Source from the content-addressed store, hash-verified

758}
759
760func (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
773func (s *Sensor) AssertReportNotIncludesFiles(t *testing.T, filepath ...string) {
774 if s.creport == nil {

Calls 1

artifactsByFilePathFunction · 0.85