diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:00:28 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:00:28 -0500 |
commit | 6d68e3295c29a6812185cefb5d4fce3518b43c30 (patch) | |
tree | b5b4d06b43e406df4977f4e4eaae216c8b09215a | |
parent | e5ec1e716de43cf36bf99677b10ac0d50ca789b2 (diff) | |
download | cvez-6d68e3295c29a6812185cefb5d4fce3518b43c30.tar.bz2 cvez-6d68e3295c29a6812185cefb5d4fce3518b43c30.zip |
main.go: test vector metrics
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) } |