From 6d68e3295c29a6812185cefb5d4fce3518b43c30 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 31 Jan 2022 14:00:28 -0500 Subject: main.go: test vector metrics --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) } -- cgit v1.2.3