MCPcopy Create free account
hub / github.com/commander-cli/commander / Test_TestCommand_Verbose

Function Test_TestCommand_Verbose

pkg/app/test_command_test.go:19–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17)
18
19func Test_TestCommand_Verbose(t *testing.T) {
20 out := captureOutput(func() {
21 TestCommand("commander.yaml", TestCommandContext{Verbose: true})
22 log.Println("test test test")
23 })
24
25 assert.Contains(t, out, "test test test")
26}
27
28func Test_TestCommand_DefaultFile(t *testing.T) {
29 err := TestCommand("", TestCommandContext{Verbose: true})

Callers

nothing calls this directly

Calls 2

captureOutputFunction · 0.85
TestCommandFunction · 0.85

Tested by

no test coverage detected