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

Function TestShow

cli/command/context/show_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestShow(t *testing.T) {
10 cli := makeFakeCli(t)
11 createTestContext(t, cli, "current", nil)
12 cli.SetCurrentContext("current")
13
14 cli.OutBuffer().Reset()
15 runShow(cli)
16 golden.Assert(t, cli.OutBuffer().String(), "show.golden")
17}

Callers

nothing calls this directly

Calls 6

makeFakeCliFunction · 0.85
createTestContextFunction · 0.85
runShowFunction · 0.85
SetCurrentContextMethod · 0.80
StringMethod · 0.65
OutBufferMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…