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

Method AssertReportNotIncludesFiles

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

Source from the content-addressed store, hash-verified

771}
772
773func (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
786func (s *Sensor) AssertMondelIncludesFiles(t *testing.T, filepath ...string) {
787 if s.mondel == nil {

Calls 1

artifactsByFilePathFunction · 0.85