MCPcopy Index your code
hub / github.com/docker/cli / TestRemoveDefault

Function TestRemoveDefault

cli/command/context/remove_test.go:58–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestRemoveDefault(t *testing.T) {
59 cli := makeFakeCli(t)
60 createTestContext(t, cli, "other", nil)
61 cli.SetCurrentContext("current")
62 err := runRemove(cli, removeOptions{}, []string{"default"})
63 assert.ErrorContains(t, err, `context "default" cannot be removed`)
64}

Callers

nothing calls this directly

Calls 4

makeFakeCliFunction · 0.85
createTestContextFunction · 0.85
SetCurrentContextMethod · 0.80
runRemoveFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…