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

Function Test_TestCommand_WithTitle

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

Source from the content-addressed store, hash-verified

48}
49
50func Test_TestCommand_WithTitle(t *testing.T) {
51 out := captureOutput(func() {
52 context := TestCommandContext{}
53 context.Filters = commanderRuntime.Filters{"another"}
54 TestCommand("testdata/test.yaml", context)
55 })
56 assert.Contains(t, out, "✓ [local] another")
57}
58
59func Test_TestCommand_WithConfig(t *testing.T) {
60 testSuite := "testdata/overwrite.yaml"

Callers

nothing calls this directly

Calls 2

captureOutputFunction · 0.85
TestCommandFunction · 0.85

Tested by

no test coverage detected