Skip to content

Commit 9d6235c

Browse files
committed
Add test case to improve the test coverage.
1 parent debb1ed commit 9d6235c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/scheduler/framework/plugins/helper/normalize_score_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ func TestDefaultNormalizeScore(t *testing.T) {
5555
scores: []int64{1000, 1, 1, 1},
5656
expectedScores: []int64{100, 0, 0, 0},
5757
},
58+
{
59+
reverse: true,
60+
scores: []int64{0, 1, 1, 1},
61+
expectedScores: []int64{100, 0, 0, 0},
62+
},
5863
}
5964

6065
for i, test := range tests {

0 commit comments

Comments
 (0)