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

Function Test_TestCommand_Dir_Err

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

Source from the content-addressed store, hash-verified

89}
90
91func Test_TestCommand_Dir_Err(t *testing.T) {
92 err := TestCommand("http://foo.com/bar", TestCommandContext{Dir: true})
93
94 if runtime.GOOS == "windows" {
95 assert.Contains(t, err.Error(), "Error: Input is not a directory")
96 } else {
97 assert.Equal(t, "Error: Input is not a directory", err.Error())
98 }
99}
100
101func Test_TestCommand_Http(t *testing.T) {
102 defer gock.Off()

Callers

nothing calls this directly

Calls 1

TestCommandFunction · 0.85

Tested by

no test coverage detected