From 210c57382dfcd1e1d307609d7a34afd4d58b5c1d Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 6 Feb 2022 15:07:07 -0500 Subject: cvss: add v2scores and tests (busted atm) --- cvss/v2vector.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cvss/v2vector.go') diff --git a/cvss/v2vector.go b/cvss/v2vector.go index b1fca1f..14a4afb 100644 --- a/cvss/v2vector.go +++ b/cvss/v2vector.go @@ -41,6 +41,11 @@ func (v v2Vector) Metrics() []Metric { return r } +// Return numerical scores for this vector. +func (v v2Vector) Scores() (v2Scores, error) { + return newV2Scores(v) +} + // Create CVSS 2.0 vector from string. func newV2Vector(s string) (v2Vector, error) { strs := strings.Split(s, "/") -- cgit v1.2.3