(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestRemove(t *testing.T) { |
| 15 | cli := makeFakeCli(t) |
| 16 | createTestContexts(t, cli, "current", "other") |
| 17 | assert.NilError(t, runRemove(cli, removeOptions{}, []string{"other"})) |
| 18 | _, err := cli.ContextStore().GetMetadata("current") |
| 19 | assert.NilError(t, err) |
| 20 | _, err = cli.ContextStore().GetMetadata("other") |
| 21 | assert.Check(t, is.ErrorType(err, errdefs.IsNotFound)) |
| 22 | } |
| 23 | |
| 24 | func TestRemoveNotAContext(t *testing.T) { |
| 25 | cli := makeFakeCli(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…