@@ -139,7 +139,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
139139 }{
140140 {
141141 name : "CDX SBOM with author name only" ,
142- actual : FsctSbomAuthor (cdxDocWithSbomAuthorName ()),
142+ actual : SbomAuthor (cdxDocWithSbomAuthorName ()),
143143 expected : desired {
144144 score : 10.0 ,
145145 result : "Samantha Wright" ,
@@ -150,7 +150,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
150150 },
151151 {
152152 name : "CDX SBOM with author name and email" ,
153- actual : FsctSbomAuthor (cdxDocWithSbomAuthorNameAndEmail ()),
153+ actual : SbomAuthor (cdxDocWithSbomAuthorNameAndEmail ()),
154154 expected : desired {
155155 score : 10.0 ,
156156 result : "Samantha Wright (samantha.wright@example.com)" ,
@@ -161,7 +161,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
161161 },
162162 {
163163 name : "CDX SBOM with author name and contact" ,
164- actual : FsctSbomAuthor (cdxDocWithSbomAuthorNameAndContact ()),
164+ actual : SbomAuthor (cdxDocWithSbomAuthorNameAndContact ()),
165165 expected : desired {
166166 score : 10.0 ,
167167 result : "Samantha Wright (800-555-1212)" ,
@@ -172,7 +172,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
172172 },
173173 {
174174 name : "CDX SBOM with author name, email and contact" ,
175- actual : FsctSbomAuthor (cdxDocWithSbomAuthorNameEmailAndContact ()),
175+ actual : SbomAuthor (cdxDocWithSbomAuthorNameEmailAndContact ()),
176176 expected : desired {
177177 score : 10.0 ,
178178 result : "Samantha Wright (samantha.wright@example.com, 800-555-1212)" ,
@@ -183,7 +183,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
183183 },
184184 {
185185 name : "CDX SBOM with a tool" ,
186- actual : FsctSbomAuthor (cdxDocWithTool ()),
186+ actual : SbomAuthor (cdxDocWithTool ()),
187187 expected : desired {
188188 score : 0.0 ,
189189 result : "sbom-tool-9.1.2" ,
@@ -194,7 +194,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
194194 },
195195 {
196196 name : "CDX SBOM with multiple tools" ,
197- actual : FsctSbomAuthor (cdxDocWithMultipleTools ()),
197+ actual : SbomAuthor (cdxDocWithMultipleTools ()),
198198 expected : desired {
199199 score : 0.0 ,
200200 result : "sbom-tool-9.1.2, syft-1.1.2" ,
@@ -205,7 +205,7 @@ func TestFsctCDXSbomAuthorFields(t *testing.T) {
205205 },
206206 {
207207 name : "CDX SBOM with a Author and tool" ,
208- actual : FsctSbomAuthor (cdxDocWithAuthorAndTools ()),
208+ actual : SbomAuthor (cdxDocWithAuthorAndTools ()),
209209 expected : desired {
210210 score : 12.0 ,
211211 result : "Samantha Wright (samantha.wright@example.com, 800-555-1212), sbom-tool-9.1.2" ,
@@ -270,7 +270,7 @@ func TestFsctCDXOtherSbomLevelFields(t *testing.T) {
270270 }{
271271 {
272272 name : "CDX SBOM with timestamp" ,
273- actual : FsctSbomTimestamp (cdxDocWithTimestamp ()),
273+ actual : SbomTimestamp (cdxDocWithTimestamp ()),
274274 expected : desired {
275275 score : 10.0 ,
276276 result : "2020-04-13T20:20:39+00:00" ,
@@ -281,7 +281,7 @@ func TestFsctCDXOtherSbomLevelFields(t *testing.T) {
281281 },
282282 {
283283 name : "CDX SBOM with custom phase lifecycle" ,
284- actual : FsctSbomType (cdxDocWithCustomPhaseLifecycles ()),
284+ actual : SbomType (cdxDocWithCustomPhaseLifecycles ()),
285285 expected : desired {
286286 score : 15.0 ,
287287 result : "platform-integration-testing" ,
@@ -292,7 +292,7 @@ func TestFsctCDXOtherSbomLevelFields(t *testing.T) {
292292 },
293293 {
294294 name : "CDX SBOM with pre-defined phase lifecycle" ,
295- actual : FsctSbomType (cdxDocWithPreDefinedPhaseLifecycles ()),
295+ actual : SbomType (cdxDocWithPreDefinedPhaseLifecycles ()),
296296 expected : desired {
297297 score : 15.0 ,
298298 result : "build" ,
@@ -303,7 +303,7 @@ func TestFsctCDXOtherSbomLevelFields(t *testing.T) {
303303 },
304304 {
305305 name : "CDX SBOM with primary component" ,
306- actual : FsctSbomPrimaryComponent (cdxDocWithPrimaryComponent ()),
306+ actual : SbomPrimaryComponent (cdxDocWithPrimaryComponent ()),
307307 expected : desired {
308308 score : 10.0 ,
309309 result : "git@github.com:interlynk/sbomqs.git" ,
@@ -402,7 +402,7 @@ func TestFsctSPDXSbomLevelFields(t *testing.T) {
402402 }{
403403 {
404404 name : "SPDX SBOM with lifecycle" ,
405- actual : FsctSbomType (spdxDocWithLifecycles ()),
405+ actual : SbomType (spdxDocWithLifecycles ()),
406406 expected : desired {
407407 score : 15.0 ,
408408 result : "hellow, this is sbom build phase" ,
@@ -413,7 +413,7 @@ func TestFsctSPDXSbomLevelFields(t *testing.T) {
413413 },
414414 {
415415 name : "SPDX SBOM with primary component" ,
416- actual : FsctSbomPrimaryComponent (spdxDocWithPrimaryComponent ()),
416+ actual : SbomPrimaryComponent (spdxDocWithPrimaryComponent ()),
417417 expected : desired {
418418 score : 10.0 ,
419419 result : "SPDXRef-DocumentRoot-File-sbomqs-linux-amd64" ,
@@ -424,7 +424,7 @@ func TestFsctSPDXSbomLevelFields(t *testing.T) {
424424 },
425425 {
426426 name : "SPDX SBOM with author name only" ,
427- actual : FsctSbomAuthor (spdxDocWithSbomAuthor ()),
427+ actual : SbomAuthor (spdxDocWithSbomAuthor ()),
428428 expected : desired {
429429 score : 10.0 ,
430430 result : "Jane Doe" ,
@@ -435,7 +435,7 @@ func TestFsctSPDXSbomLevelFields(t *testing.T) {
435435 },
436436 {
437437 name : "SPDX SBOM with tool only" ,
438- actual : FsctSbomAuthor (spdxDocWithSbomTool ()),
438+ actual : SbomAuthor (spdxDocWithSbomTool ()),
439439 expected : desired {
440440 score : 0.0 ,
441441 result : "syft-1.9.0" ,
@@ -446,7 +446,7 @@ func TestFsctSPDXSbomLevelFields(t *testing.T) {
446446 },
447447 {
448448 name : "SPDX SBOM with Author and tool both" ,
449- actual : FsctSbomAuthor (spdxDocWithSbomAuthorAndTool ()),
449+ actual : SbomAuthor (spdxDocWithSbomAuthorAndTool ()),
450450 expected : desired {
451451 score : 12.0 ,
452452 result : "Jane Doe, syft-1.9.0" ,
@@ -766,21 +766,6 @@ func TestFsctComponentLevelOnSpdxAndCdx(t *testing.T) {
766766 }
767767}
768768
769- func cdxCompWithUniqID () sbom.GetComponent {
770- name := "cobra"
771- p := []purl.PURL {}
772- npurl := purl .NewPURL ("pkg:github/spf13/cobra@e94f6d0dd9a5e5738dca6bce03c4b1207ffbc0ec" )
773- if npurl .Valid () {
774- p = append (p , npurl )
775- }
776-
777- comp := sbom.Component {
778- Name : name ,
779- Purls : p ,
780- }
781- return comp
782- }
783-
784769func primaryCompWithHigherChecksum () (sbom.Document , sbom.GetComponent ) {
785770 primary := sbom.PrimaryComp {}
786771
@@ -1384,17 +1369,6 @@ func cdxCompWithOmniBorID() sbom.GetComponent {
13841369 return comp
13851370}
13861371
1387- func cdxCompWithCPE () sbom.GetComponent {
1388- comp := sbom .NewComponent ()
1389- comp .Name = "packageurl-go"
1390- PackageURL := "pkg:github/package-url/packageurl-go@7cb81af9593b9512bb946c55c85609948c48aab9"
1391-
1392- prl := purl .NewPURL (PackageURL )
1393- comp .Purls = []purl.PURL {prl }
1394-
1395- return comp
1396- }
1397-
13981372func cdxCompWithPurlOmniSwhidAndSwid () sbom.GetComponent {
13991373 comp := sbom .NewComponent ()
14001374 comp .Name = "acme"
0 commit comments