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

Function TestCommand_badCommandArg

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

Source from the content-addressed store, hash-verified

17}
18
19func TestCommand_badCommandArg(t *testing.T) {
20 StubCommandLineArgs("doesnotexist")
21 err := command()
22 assert.Equal(t, "unknown command: doesnotexist", err.Error())
23}
24
25func TestCommand_link_noArgs(t *testing.T) {
26 StubCommandLineArgs("link")

Callers

nothing calls this directly

Calls 2

StubCommandLineArgsFunction · 0.85
commandFunction · 0.85

Tested by

no test coverage detected