aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-01-31 14:00:28 -0500
committerPaul Duncan <pabs@pablotron.org>2022-01-31 14:00:28 -0500
commit6d68e3295c29a6812185cefb5d4fce3518b43c30 (patch)
treeb5b4d06b43e406df4977f4e4eaae216c8b09215a
parente5ec1e716de43cf36bf99677b10ac0d50ca789b2 (diff)
downloadcvez-6d68e3295c29a6812185cefb5d4fce3518b43c30.tar.bz2
cvez-6d68e3295c29a6812185cefb5d4fce3518b43c30.zip
main.go: test vector metrics
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index fec4e36..608d710 100644
--- a/main.go
+++ b/main.go
@@ -55,7 +55,7 @@ func testFeedParser() {
// test cvss v3.1 vector
var testCvssV3 = "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
-// Test cvss v3 parser
+// Test CVSS v3 parser.
func testCvssV3Parser() {
// parse vector, check for error
v, err := cvss.NewVector(testCvssV3)
@@ -63,6 +63,7 @@ func testCvssV3Parser() {
log.Fatal(err)
}
+ fmt.Println(v.Metrics())
fmt.Println(v)
}
@@ -77,6 +78,7 @@ func testCvssV2Parser() {
log.Fatal(err)
}
+ fmt.Println(v.Metrics())
fmt.Println(v)
}