MCPcopy Create free account
hub / github.com/docker/docker-agent / TestConsole_error

Function TestConsole_error

pkg/tools/codemode/console_test.go:65–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestConsole_error(t *testing.T) {
66 t.Parallel()
67
68 var stdOut bytes.Buffer
69 var stdErr bytes.Buffer
70 console(&stdOut, &stdErr)["error"]("error message")
71
72 assert.Empty(t, stdOut.String())
73 assert.Equal(t, "error message\n", stdErr.String())
74}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected