(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestCreateFilterNoneFound(t *testing.T) { |
| 64 | apiClient := &fakeClient{} |
| 65 | options := psOptions{ |
| 66 | services: []string{"foo", "notfound"}, |
| 67 | filter: opts.NewFilterOpt(), |
| 68 | } |
| 69 | _, _, err := createFilter(context.Background(), apiClient, options) |
| 70 | assert.Error(t, err, "no such service: foo\nno such service: notfound") |
| 71 | } |
| 72 | |
| 73 | func TestRunPSWarnsOnNotFound(t *testing.T) { |
| 74 | apiClient := &fakeClient{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…