mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #110876 from zhoumingcheng/master-unit-v6
add unit test coverage for pkg/util/slice
This commit is contained in:
commit
efa26e5daf
@ -78,6 +78,11 @@ func TestContainsString(t *testing.T) {
|
||||
if !ContainsString(src, "ee", modifier) {
|
||||
t.Errorf("ContainsString didn't find the string by modifier")
|
||||
}
|
||||
|
||||
src = make([]string, 0)
|
||||
if ContainsString(src, "", nil) {
|
||||
t.Errorf("The result returned is not the expected result")
|
||||
}
|
||||
}
|
||||
|
||||
func TestRemoveString(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user