File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import (
1414// Impact represents severity rating scale when impact is provided as human-readable string value
1515var impactMapping = map [string ]int32 {
1616 "none" : 0 ,
17- "low" : 10 ,
18- "medium" : 40 ,
19- "high" : 70 ,
20- "critical" : 100 ,
17+ "low" : 20 ,
18+ "medium" : 55 ,
19+ "high" : 80 ,
20+ "critical" : 95 ,
2121}
2222
2323func (v * Impact ) HumanReadable () string {
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ func TestImpactParsing(t *testing.T) {
3838 "critical rating" ,
3939 `"critical"` ,
4040 & Impact {
41- Value : & ImpactValue {Value : 100 },
41+ Value : & ImpactValue {Value : 95 },
4242 },
4343 },
4444 {
4545 "low rating" ,
4646 `"low"` ,
4747 & Impact {
48- Value : & ImpactValue {Value : 10 },
48+ Value : & ImpactValue {Value : 20 },
4949 },
5050 },
5151 }
You can’t perform that action at this time.
0 commit comments