mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #89508 from KobayashiD27/test-coverage-up
Add test case to improve the test coverage.
This commit is contained in:
commit
594cbdfd19
@ -55,6 +55,11 @@ func TestDefaultNormalizeScore(t *testing.T) {
|
|||||||
scores: []int64{1000, 1, 1, 1},
|
scores: []int64{1000, 1, 1, 1},
|
||||||
expectedScores: []int64{100, 0, 0, 0},
|
expectedScores: []int64{100, 0, 0, 0},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
reverse: true,
|
||||||
|
scores: []int64{0, 1, 1, 1},
|
||||||
|
expectedScores: []int64{100, 0, 0, 0},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user