aboutsummaryrefslogtreecommitdiff
path: root/tvloader
diff options
context:
space:
mode:
authorpxp928 <parth.psu@gmail.com>2022-10-03 12:07:00 -0400
committerpxp928 <parth.psu@gmail.com>2022-10-03 12:13:42 -0400
commit31a11a374d8c40e0a95bfab03cc38034076d757f (patch)
treecc942cd5a3e36413194df8affb7695ac80e41c76 /tvloader
parent97ef16cfc20c7ff192156fdebfc21401b360a965 (diff)
downloadspdx-tools-31a11a374d8c40e0a95bfab03cc38034076d757f.tar.gz
updated constants
Signed-off-by: pxp928 <parth.psu@gmail.com>
Diffstat (limited to 'tvloader')
-rw-r--r--tvloader/parser2v1/parse_package_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvloader/parser2v1/parse_package_test.go b/tvloader/parser2v1/parse_package_test.go
index dea9dc4..052f535 100644
--- a/tvloader/parser2v1/parse_package_test.go
+++ b/tvloader/parser2v1/parse_package_test.go
@@ -477,7 +477,7 @@ func TestParser2_1CanParsePackageTags(t *testing.T) {
// Package External References and Comments
ref1 := "SECURITY cpe23Type cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
ref1Category := "SECURITY"
- ref1Type := common.Cpe23Type
+ ref1Type := common.TypeSecurityCPE23Type
ref1Locator := "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
ref1Comment := "this is comment #1"
ref2 := "OTHER LocationRef-acmeforge acmecorp/acmenator/4.1.3alpha"
@@ -1025,7 +1025,7 @@ func TestCanCheckAndExtractExcludesFilenameAndCode(t *testing.T) {
func TestCanExtractPackageExternalReference(t *testing.T) {
ref1 := "SECURITY cpe23Type cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
category := "SECURITY"
- refType := common.Cpe23Type
+ refType := common.TypeSecurityCPE23Type
location := "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
gotCategory, gotRefType, gotLocation, err := extractPackageExternalReference(ref1)
@@ -1046,7 +1046,7 @@ func TestCanExtractPackageExternalReference(t *testing.T) {
func TestCanExtractPackageExternalReferenceWithExtraWhitespace(t *testing.T) {
ref1 := " SECURITY \t cpe23Type cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:* \t "
category := "SECURITY"
- refType := common.Cpe23Type
+ refType := common.TypeSecurityCPE23Type
location := "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
gotCategory, gotRefType, gotLocation, err := extractPackageExternalReference(ref1)