MCPcopy
hub / github.com/docker/docker-agent / TestConsole_warn

Function TestConsole_warn

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

Source from the content-addressed store, hash-verified

52}
53
54func TestConsole_warn(t *testing.T) {
55 t.Parallel()
56
57 var stdOut bytes.Buffer
58 var stdErr bytes.Buffer
59 console(&stdOut, &stdErr)["warn"]("warn message")
60
61 assert.Equal(t, "warn message\n", stdOut.String())
62 assert.Empty(t, stdErr.String())
63}
64
65func TestConsole_error(t *testing.T) {
66 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected