mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue