MCPcopy Index your code
hub / github.com/docker/docker-agent / TestConsole_debug

Function TestConsole_debug

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

Source from the content-addressed store, hash-verified

8)
9
10func TestConsole_debug(t *testing.T) {
11 t.Parallel()
12
13 var stdOut bytes.Buffer
14 var stdErr bytes.Buffer
15 console(&stdOut, &stdErr)["debug"]("debug message")
16
17 assert.Equal(t, "debug message\n", stdOut.String())
18 assert.Empty(t, stdErr.String())
19}
20
21func TestConsole_info(t *testing.T) {
22 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected