diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 17:18:06 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 17:18:06 -0500 |
commit | f77d9ce238dc4c86a605770b33f27d2cb0d51eb3 (patch) | |
tree | d05c7d44ae99d44b17970a2314f34724d5dd8aad /internal/cvss/v2vector_test.go | |
parent | 08cd2d3e893e4f1298110594ca168e366a38d5aa (diff) | |
download | cvez-f77d9ce238dc4c86a605770b33f27d2cb0d51eb3.tar.bz2 cvez-f77d9ce238dc4c86a605770b33f27d2cb0d51eb3.zip |
add Makefile, internal/cvss/v{2,31}vector_test.go
Diffstat (limited to 'internal/cvss/v2vector_test.go')
-rw-r--r-- | internal/cvss/v2vector_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/cvss/v2vector_test.go b/internal/cvss/v2vector_test.go new file mode 100644 index 0000000..3ef4194 --- /dev/null +++ b/internal/cvss/v2vector_test.go @@ -0,0 +1,17 @@ +package cvss + +import "testing" + +// test v2 vector +var testCvssV2 = "AV:L/AC:L/Au:N/C:N/I:N/A:P" + +// Test cvss v2 parser +func TestCvssV2Parser(t *testing.T) { + t.Run("TestV2Parser", func(t *testing.T) { + // parse vector, check for error + _, err := NewVector(testCvssV2) + if err != nil { + t.Error(err) + } + }) +} |