(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestRemoveCurrent(t *testing.T) { |
| 35 | cli := makeFakeCli(t) |
| 36 | createTestContexts(t, cli, "current", "other") |
| 37 | cli.SetCurrentContext("current") |
| 38 | err := runRemove(cli, removeOptions{}, []string{"current"}) |
| 39 | assert.ErrorContains(t, err, `context "current" is in use, set -f flag to force remove`) |
| 40 | } |
| 41 | |
| 42 | func TestRemoveCurrentForce(t *testing.T) { |
| 43 | configDir := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…