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

Function Test_TestCommand_Dir

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

Source from the content-addressed store, hash-verified

82}
83
84func Test_TestCommand_Dir(t *testing.T) {
85 out := captureOutput(func() {
86 TestCommand("testdata/", TestCommandContext{Dir: true})
87 })
88 assert.Contains(t, out, "✓ [test.yaml] [local] it should print hello world")
89}
90
91func Test_TestCommand_Dir_Err(t *testing.T) {
92 err := TestCommand("http://foo.com/bar", TestCommandContext{Dir: true})

Callers

nothing calls this directly

Calls 2

captureOutputFunction · 0.85
TestCommandFunction · 0.85

Tested by

no test coverage detected