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

Function TestUpdateInvalidDockerHost

cli/command/context/update_test.go:50–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestUpdateInvalidDockerHost(t *testing.T) {
51 cli := makeFakeCli(t)
52 err := runCreate(cli, "test", createOptions{
53 endpoint: map[string]string{},
54 })
55 assert.NilError(t, err)
56 err = runUpdate(cli, "test", updateOptions{
57 endpoint: map[string]string{
58 keyHost: "some///invalid/host",
59 },
60 })
61 assert.ErrorContains(t, err, "unable to parse docker host")
62}

Callers

nothing calls this directly

Calls 3

makeFakeCliFunction · 0.85
runCreateFunction · 0.70
runUpdateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…