diff options
-rw-r--r-- | cvss/v3metric.go | 6 | ||||
-rw-r--r-- | cvss/v3metric_string.go | 2 | ||||
-rw-r--r-- | cvss/v3metric_test.go | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cvss/v3metric.go b/cvss/v3metric.go index fc4c860..df408fd 100644 --- a/cvss/v3metric.go +++ b/cvss/v3metric.go @@ -78,7 +78,7 @@ const ( v3MACLow // MAC:L v3MACHigh // MAC:H - v3MMRNotDefined // MPR:X + v3MPRNotDefined // MPR:X v3MPRLow // MPR:L v3MPRHigh // MPR:H @@ -182,7 +182,7 @@ var v3KeyLut = map[v3Metric]v3Key { v3MACLow: v3ModifiedAttackComplexity, // MAC:L v3MACHigh: v3ModifiedAttackComplexity, // MAC:H - v3MMRNotDefined: v3ModifiedPrivilegesRequired, // MPR:X + v3MPRNotDefined: v3ModifiedPrivilegesRequired, // MPR:X v3MPRLow: v3ModifiedPrivilegesRequired, // MPR:L v3MPRHigh: v3ModifiedPrivilegesRequired, // MPR:H @@ -284,7 +284,7 @@ var v3MetricStrLut = map[string]v3Metric { "MAC:L": v3MACLow, "MAC:H": v3MACHigh, - "MPR:X": v3MMRNotDefined, + "MPR:X": v3MPRNotDefined, "MPR:L": v3MPRLow, "MPR:H": v3MPRHigh, diff --git a/cvss/v3metric_string.go b/cvss/v3metric_string.go index 612ed83..b7d6702 100644 --- a/cvss/v3metric_string.go +++ b/cvss/v3metric_string.go @@ -64,7 +64,7 @@ func _() { _ = x[v3MACNotDefined-53] _ = x[v3MACLow-54] _ = x[v3MACHigh-55] - _ = x[v3MMRNotDefined-56] + _ = x[v3MPRNotDefined-56] _ = x[v3MPRLow-57] _ = x[v3MPRHigh-58] _ = x[v3MUINotDefined-59] diff --git a/cvss/v3metric_test.go b/cvss/v3metric_test.go index 432d34a..a3c587a 100644 --- a/cvss/v3metric_test.go +++ b/cvss/v3metric_test.go @@ -80,7 +80,7 @@ func TestGetV3Metric(t *testing.T) { { "MAC:L", v3MACLow, true }, { "MAC:H", v3MACHigh, true }, - { "MPR:X", v3MMRNotDefined, true }, + { "MPR:X", v3MPRNotDefined, true }, { "MPR:L", v3MPRLow, true }, { "MPR:H", v3MPRHigh, true }, @@ -201,7 +201,7 @@ func TestGetV3MetricKey(t *testing.T) { { v3MACLow, v3ModifiedAttackComplexity }, // MAC:L { v3MACHigh, v3ModifiedAttackComplexity }, // MAC:H - { v3MMRNotDefined, v3ModifiedPrivilegesRequired }, // MPR:X + { v3MPRNotDefined, v3ModifiedPrivilegesRequired }, // MPR:X { v3MPRLow, v3ModifiedPrivilegesRequired }, // MPR:L { v3MPRHigh, v3ModifiedPrivilegesRequired }, // MPR:H @@ -316,7 +316,7 @@ func TestV3MetricString(t *testing.T) { { v3MACLow, "MAC:L" }, { v3MACHigh, "MAC:H" }, - { v3MMRNotDefined, "MPR:X" }, + { v3MPRNotDefined, "MPR:X" }, { v3MPRLow, "MPR:L" }, { v3MPRHigh, "MPR:H" }, |