add another test

This commit is contained in:
Donny Xia
2020-09-21 12:24:47 -07:00
parent 2f8a376ae4
commit 544fc60bfe

View File

@@ -166,10 +166,16 @@ func TestFindPatchTargets(t *testing.T) {
},
{
target: types.Selector{
Namespace: "foo",
Namespace: "NotMatched",
},
count: 0,
},
{
target: types.Selector{
Namespace: "ns1",
},
count: 1,
},
}
for _, testcase := range testcases {
actual, err := rm.Select(testcase.target)