@@ -242,8 +242,8 @@ func Test_callback_SBOMResolution(t *testing.T) {
242242 // Create mock plugin that returns two findings
243243 mockPlugin := & mockScaPlugin {
244244 findings : []scaplugin.Finding {
245- {Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[]}` ), FilesProcessed : []string {}},
246- {Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[{"name":"test"}]}` ), FilesProcessed : []string {}},
245+ {Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[]}` ), FileExclusions : []string {}},
246+ {Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[{"name":"test"}]}` ), FileExclusions : []string {}},
247247 },
248248 }
249249
@@ -297,19 +297,19 @@ func Test_callback_SBOMResolution(t *testing.T) {
297297 t .Run ("handleSBOMResolution with FlagAllProjects" , func (t * testing.T ) {
298298 finding1 := scaplugin.Finding {
299299 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[]}` ),
300- FilesProcessed : []string {"uv.lock" , "pyproject.toml" },
300+ FileExclusions : []string {"uv.lock" , "pyproject.toml" },
301301 }
302302 finding2 := scaplugin.Finding {
303303 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[{"name":"test"}]}` ),
304- FilesProcessed : []string {"requirements.txt" , "setup.py" },
304+ FileExclusions : []string {"requirements.txt" , "setup.py" },
305305 }
306306 finding3 := scaplugin.Finding {
307307 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[{"name":"someFinding"}]}` ),
308- FilesProcessed : []string {"package.json" },
308+ FileExclusions : []string {"package.json" },
309309 }
310310 finding4 := scaplugin.Finding {
311311 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[{"name":"anotherFinding"}]}` ),
312- FilesProcessed : []string {"go.mod" },
312+ FileExclusions : []string {"go.mod" },
313313 }
314314
315315 tc := []struct {
@@ -520,7 +520,7 @@ func Test_callback_SBOMResolution(t *testing.T) {
520520 findings : []scaplugin.Finding {
521521 {
522522 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[]}` ),
523- FilesProcessed : []string {"uv.lock" },
523+ FileExclusions : []string {"uv.lock" },
524524 },
525525 },
526526 }
@@ -590,7 +590,7 @@ func Test_callback_SBOMResolution(t *testing.T) {
590590 findings : []scaplugin.Finding {
591591 {
592592 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5","components":[]}` ),
593- FilesProcessed : []string {"uv.lock" },
593+ FileExclusions : []string {"uv.lock" },
594594 },
595595 },
596596 }
@@ -632,7 +632,7 @@ func Test_getExclusionsFromFindings(t *testing.T) {
632632 findings : []scaplugin.Finding {
633633 {
634634 Sbom : []byte (`{"bomFormat":"CycloneDX"}` ),
635- FilesProcessed : []string {},
635+ FileExclusions : []string {},
636636 },
637637 },
638638 expected : []string {},
@@ -642,7 +642,7 @@ func Test_getExclusionsFromFindings(t *testing.T) {
642642 findings : []scaplugin.Finding {
643643 {
644644 Sbom : []byte (`{"bomFormat":"CycloneDX"}` ),
645- FilesProcessed : []string {"file1.py" , "file2.py" },
645+ FileExclusions : []string {"file1.py" , "file2.py" },
646646 },
647647 },
648648 expected : []string {"file1.py" , "file2.py" },
@@ -652,11 +652,11 @@ func Test_getExclusionsFromFindings(t *testing.T) {
652652 findings : []scaplugin.Finding {
653653 {
654654 Sbom : []byte (`{"bomFormat":"CycloneDX"}` ),
655- FilesProcessed : []string {"file1.py" , "file2.py" },
655+ FileExclusions : []string {"file1.py" , "file2.py" },
656656 },
657657 {
658658 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5"}` ),
659- FilesProcessed : []string {"file3.py" , "file4.py" , "file5.py" },
659+ FileExclusions : []string {"file3.py" , "file4.py" , "file5.py" },
660660 },
661661 },
662662 expected : []string {"file1.py" , "file2.py" , "file3.py" , "file4.py" , "file5.py" },
@@ -666,15 +666,15 @@ func Test_getExclusionsFromFindings(t *testing.T) {
666666 findings : []scaplugin.Finding {
667667 {
668668 Sbom : []byte (`{"bomFormat":"CycloneDX"}` ),
669- FilesProcessed : []string {},
669+ FileExclusions : []string {},
670670 },
671671 {
672672 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.5"}` ),
673- FilesProcessed : []string {"file1.py" },
673+ FileExclusions : []string {"file1.py" },
674674 },
675675 {
676676 Sbom : []byte (`{"bomFormat":"CycloneDX","specVersion":"1.6"}` ),
677- FilesProcessed : []string {"file2.py" , "file3.py" },
677+ FileExclusions : []string {"file2.py" , "file3.py" },
678678 },
679679 },
680680 expected : []string {"file1.py" , "file2.py" , "file3.py" },
0 commit comments