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

Function assertContextCreateLogging

cli/command/context/create_test.go:148–152  ·  view source on GitHub ↗
(t *testing.T, cli *test.FakeCli, n string)

Source from the content-addressed store, hash-verified

146}
147
148func assertContextCreateLogging(t *testing.T, cli *test.FakeCli, n string) {
149 t.Helper()
150 assert.Equal(t, n+"\n", cli.OutBuffer().String())
151 assert.Equal(t, fmt.Sprintf("Successfully created context %q\n", n), cli.ErrBuffer().String())
152}
153
154func TestCreateOrchestratorEmpty(t *testing.T) {
155 cli := makeFakeCli(t)

Callers 3

TestCreateFromContextFunction · 0.85
TestCreateFromCurrentFunction · 0.85

Calls 3

StringMethod · 0.65
OutBufferMethod · 0.45
ErrBufferMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…