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

Function TestConsole_info

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

Source from the content-addressed store, hash-verified

19}
20
21func TestConsole_info(t *testing.T) {
22 t.Parallel()
23
24 var stdOut bytes.Buffer
25 var stdErr bytes.Buffer
26 console(&stdOut, &stdErr)["info"]("info message")
27
28 assert.Equal(t, "info message\n", stdOut.String())
29 assert.Empty(t, stdErr.String())
30}
31
32func TestConsole_log(t *testing.T) {
33 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
consoleFunction · 0.85

Tested by

no test coverage detected