@@ -567,7 +567,7 @@ func TestCreateVulnerabilitiesMap(t *testing.T) {
567567 Sca : []violationutils.CveViolation {
568568 {
569569 ScaViolation : violationutils.ScaViolation {
570- ImpactedComponent : cyclonedx.Component {
570+ ImpactedComponent : & cyclonedx.Component {
571571 BOMRef : "pkg:npm/viol1@1.0.0" ,
572572 PackageURL : "pkg:npm/viol1@1.0.0" ,
573573 },
@@ -580,7 +580,7 @@ func TestCreateVulnerabilitiesMap(t *testing.T) {
580580 },
581581 {
582582 ScaViolation : violationutils.ScaViolation {
583- ImpactedComponent : cyclonedx.Component {
583+ ImpactedComponent : & cyclonedx.Component {
584584 BOMRef : "pkg:npm/viol2@2.0.0" ,
585585 PackageURL : "pkg:npm/viol2@2.0.0" ,
586586 },
@@ -682,7 +682,7 @@ func TestGetTotalFindingsFromScanResults(t *testing.T) {
682682 Sca : []violationutils.CveViolation {
683683 {
684684 ScaViolation : violationutils.ScaViolation {
685- ImpactedComponent : cyclonedx.Component {
685+ ImpactedComponent : & cyclonedx.Component {
686686 BOMRef : "pkg:npm/viol1@1.0.0" ,
687687 PackageURL : "pkg:npm/viol1@1.0.0" ,
688688 },
@@ -691,7 +691,7 @@ func TestGetTotalFindingsFromScanResults(t *testing.T) {
691691 },
692692 {
693693 ScaViolation : violationutils.ScaViolation {
694- ImpactedComponent : cyclonedx.Component {
694+ ImpactedComponent : & cyclonedx.Component {
695695 BOMRef : "pkg:npm/viol2@2.0.0" ,
696696 PackageURL : "pkg:npm/viol2@2.0.0" ,
697697 },
@@ -718,7 +718,7 @@ func TestGetTotalFindingsFromScanResults(t *testing.T) {
718718 Sca : []violationutils.CveViolation {
719719 {
720720 ScaViolation : violationutils.ScaViolation {
721- ImpactedComponent : cyclonedx.Component {
721+ ImpactedComponent : & cyclonedx.Component {
722722 BOMRef : "pkg:npm/viol1@1.0.0" ,
723723 PackageURL : "pkg:npm/viol1@1.0.0" ,
724724 },
@@ -727,7 +727,7 @@ func TestGetTotalFindingsFromScanResults(t *testing.T) {
727727 },
728728 {
729729 ScaViolation : violationutils.ScaViolation {
730- ImpactedComponent : cyclonedx.Component {
730+ ImpactedComponent : & cyclonedx.Component {
731731 BOMRef : "pkg:npm/viol2@2.0.0" ,
732732 PackageURL : "pkg:npm/viol2@2.0.0" ,
733733 },
0 commit comments