schedulers,test: avoid some test branches not being reached and remove schedulePeerPr #8087
82.69% of diff hit (target 77.21%)
View this Pull Request on Codecov
82.69% of diff hit (target 77.21%)
Annotations
Check warning on line 183 in pkg/schedule/schedulers/hot_region.go
codecov / codecov/patch
pkg/schedule/schedulers/hot_region.go#L182-L183
Added lines #L182 - L183 were not covered by tests
Check warning on line 349 in pkg/schedule/schedulers/hot_region.go
codecov / codecov/patch
pkg/schedule/schedulers/hot_region.go#L349
Added line #L349 was not covered by tests
Check warning on line 354 in pkg/schedule/schedulers/hot_region.go
codecov / codecov/patch
pkg/schedule/schedulers/hot_region.go#L354
Added line #L354 was not covered by tests
Check warning on line 85 in pkg/utils/operatorutil/operator_check.go
codecov / codecov/patch
pkg/utils/operatorutil/operator_check.go#L85
Added line #L85 was not covered by tests
Check warning on line 127 in pkg/utils/operatorutil/operator_check.go
codecov / codecov/patch
pkg/utils/operatorutil/operator_check.go#L127
Added line #L127 was not covered by tests
Check warning on line 180 in pkg/utils/operatorutil/operator_check.go
codecov / codecov/patch
pkg/utils/operatorutil/operator_check.go#L180
Added line #L180 was not covered by tests