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

Function TestConsole_trace

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

Source from the content-addressed store, hash-verified

41}
42
43func TestConsole_trace(t *testing.T) {
44 t.Parallel()
45
46 var stdOut bytes.Buffer
47 var stdErr bytes.Buffer
48 console(&stdOut, &stdErr)["trace"]("trace message")
49
50 assert.Equal(t, "trace message\n", stdOut.String())
51 assert.Empty(t, stdErr.String())
52}
53
54func TestConsole_warn(t *testing.T) {
55 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected