MCPcopy Create free account
hub / github.com/zalando/postgres-operator / TestRemoveString

Function TestRemoveString

pkg/util/util_test.go:214–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

212}
213
214func TestRemoveString(t *testing.T) {
215 for _, tt := range removeStringTest {
216 res := RemoveString(tt.slice, tt.item)
217 if !IsEqualIgnoreOrder(res, tt.result) {
218 t.Errorf("RemoveString expected: %#v, got: %#v", tt.result, res)
219 }
220 }
221}
222
223func TestSliceContains(t *testing.T) {
224 for _, tt := range sliceContaintsTest {

Callers

nothing calls this directly

Calls 2

RemoveStringFunction · 0.85
IsEqualIgnoreOrderFunction · 0.85

Tested by

no test coverage detected