MCPcopy Index your code
hub / github.com/docker/cli / TestCreateFilterNoneFound

Function TestCreateFilterNoneFound

cli/command/service/ps_test.go:63–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func 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
73func TestRunPSWarnsOnNotFound(t *testing.T) {
74 apiClient := &fakeClient{

Callers

nothing calls this directly

Calls 2

createFilterFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…