diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 23:28:22 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 23:28:22 -0500 |
commit | 94b148ccdcb88f2544c222f73f5c734ac78ccd96 (patch) | |
tree | 23cfa33a5df29cdfb269f5f517217ff457f314fa /internal/cvss/v2metric_test.go | |
parent | 5c4ff27a0bc70cdefad0c9a68e920e480465c4d9 (diff) | |
download | cvez-94b148ccdcb88f2544c222f73f5c734ac78ccd96.tar.bz2 cvez-94b148ccdcb88f2544c222f73f5c734ac78ccd96.zip |
internal/cvss: more tests
Diffstat (limited to 'internal/cvss/v2metric_test.go')
-rw-r--r-- | internal/cvss/v2metric_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/cvss/v2metric_test.go b/internal/cvss/v2metric_test.go index b17d2ed..f606ed5 100644 --- a/internal/cvss/v2metric_test.go +++ b/internal/cvss/v2metric_test.go @@ -265,3 +265,12 @@ func TestV2MetricString(t *testing.T) { }) } } + +func TestInvalidV2MetricKey(t *testing.T) { + got := v2Metric(255).Key() + exp := v2InvalidKey + + if got != exp { + t.Errorf("got: \"%s\", exp: \"%s\"", got, exp) + } +} |