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

Function createTestContext

cli/command/context/list_test.go:19–29  ·  view source on GitHub ↗
(t *testing.T, cli command.Cli, name string, metaData map[string]any)

Source from the content-addressed store, hash-verified

17}
18
19func createTestContext(t *testing.T, cli command.Cli, name string, metaData map[string]any) {
20 t.Helper()
21
22 err := runCreate(cli, name, createOptions{
23 description: "description of " + name,
24 endpoint: map[string]string{keyHost: "https://someswarmserver.example.com"},
25
26 metaData: metaData,
27 })
28 assert.NilError(t, err)
29}
30
31func TestList(t *testing.T) {
32 cli := makeFakeCli(t)

Callers 8

TestInspectFunction · 0.85
TestExportImportWithFileFunction · 0.85
TestExportImportPipeFunction · 0.85
TestShowFunction · 0.85
createTestContextsFunction · 0.85
TestListJSONFunction · 0.85
TestUpdateDockerOnlyFunction · 0.85
TestRemoveDefaultFunction · 0.85

Calls 1

runCreateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…