aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v2vector_test.go
blob: 3ef4194d24cadbb3cf166888833d616eff764eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
    }
  })
}