MCPcopy
hub / github.com/puma/puma-dev / TestCommand_noCommandArg

Function TestCommand_noCommandArg

cmd/puma-dev/command_test.go:13–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestCommand_noCommandArg(t *testing.T) {
14 StubCommandLineArgs()
15 err := command()
16 assert.Equal(t, "unknown command: ", err.Error())
17}
18
19func TestCommand_badCommandArg(t *testing.T) {
20 StubCommandLineArgs("doesnotexist")

Callers

nothing calls this directly

Calls 2

StubCommandLineArgsFunction · 0.85
commandFunction · 0.85

Tested by

no test coverage detected