(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestRemoveNotAContext(t *testing.T) { |
| 25 | cli := makeFakeCli(t) |
| 26 | createTestContexts(t, cli, "current", "other") |
| 27 | err := runRemove(cli, removeOptions{}, []string{"not-a-context"}) |
| 28 | assert.ErrorContains(t, err, `context "not-a-context" does not exist`) |
| 29 | |
| 30 | err = runRemove(cli, removeOptions{force: true}, []string{"not-a-context"}) |
| 31 | assert.NilError(t, err) |
| 32 | } |
| 33 | |
| 34 | func TestRemoveCurrent(t *testing.T) { |
| 35 | cli := makeFakeCli(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…