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

Function TestConsole_log

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

Source from the content-addressed store, hash-verified

30}
31
32func TestConsole_log(t *testing.T) {
33 t.Parallel()
34
35 var stdOut bytes.Buffer
36 var stdErr bytes.Buffer
37 console(&stdOut, &stdErr)["log"]("log message")
38
39 assert.Equal(t, "log message\n", stdOut.String())
40 assert.Empty(t, stdErr.String())
41}
42
43func TestConsole_trace(t *testing.T) {
44 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected