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

Function Test_TestCommand

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

Source from the content-addressed store, hash-verified

31}
32
33func Test_TestCommand(t *testing.T) {
34 err := TestCommand("commander.yaml", TestCommandContext{})
35
36 if runtime.GOOS == "windows" {
37 assert.Contains(t, err.Error(), "Error open commander.yaml:")
38 } else {
39 assert.Equal(t, "Error open commander.yaml: no such file or directory", err.Error())
40 }
41}
42
43func Test_TestCommand_ShouldUseCustomFile(t *testing.T) {
44 out := captureOutput(func() {

Callers

nothing calls this directly

Calls 1

TestCommandFunction · 0.85

Tested by

no test coverage detected