(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestStackServicesEmptyServiceList(t *testing.T) { |
| 74 | fakeCli := test.NewFakeCli(&fakeClient{ |
| 75 | serviceListFunc: func(options client.ServiceListOptions) (client.ServiceListResult, error) { |
| 76 | return client.ServiceListResult{}, nil |
| 77 | }, |
| 78 | }) |
| 79 | cmd := newServicesCommand(fakeCli) |
| 80 | cmd.SetArgs([]string{"foo"}) |
| 81 | assert.NilError(t, cmd.Execute()) |
| 82 | assert.Check(t, is.Equal("", fakeCli.OutBuffer().String())) |
| 83 | assert.Check(t, is.Equal("Nothing found in stack: foo\n", fakeCli.ErrBuffer().String())) |
| 84 | } |
| 85 | |
| 86 | func TestStackServicesWithQuietOption(t *testing.T) { |
| 87 | cli := test.NewFakeCli(&fakeClient{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…