(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func TestVolumePrunePromptYes(t *testing.T) { |
| 146 | // FIXME(vdemeester) make it work.. |
| 147 | skip.If(t, runtime.GOOS == "windows", "TODO: fix test on windows") |
| 148 | |
| 149 | for _, input := range []string{"y", "Y"} { |
| 150 | cli := test.NewFakeCli(&fakeClient{ |
| 151 | volumePruneFunc: simplePruneFunc, |
| 152 | }) |
| 153 | |
| 154 | cli.SetIn(streams.NewIn(io.NopCloser(strings.NewReader(input)))) |
| 155 | cmd := newPruneCommand(cli) |
| 156 | cmd.SetArgs([]string{}) |
| 157 | assert.NilError(t, cmd.Execute()) |
| 158 | golden.Assert(t, cli.OutBuffer().String(), "volume-prune-yes.golden") |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func TestVolumePrunePromptNo(t *testing.T) { |
| 163 | // FIXME(vdemeester) make it work.. |
nothing calls this directly
no test coverage detected
searching dependent graphs…