Merge pull request #3278 from whitewindmills/unit-test

remove redundant conversion functions
This commit is contained in:
karmada-bot 2023-03-15 14:35:18 +08:00 committed by GitHub
commit 21bb60e84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -140,12 +140,12 @@ func TestRemoveIrrelevantField(t *testing.T) {
"name": "foo",
},
"secrets": []interface{}{
conv(map[string]interface{}{
map[string]interface{}{
"name": "foo-token-6pgxf",
}),
conv(map[string]interface{}{
},
map[string]interface{}{
"name": "foo-dockercfg-zdr2j",
}),
},
},
},
},
@ -226,7 +226,3 @@ func getShouldNotRemoveFields(t *test) ([]field, error) {
}
return shouldNotRemoveFields, nil
}
func conv(m map[string]interface{}) interface{} {
return m
}