MCPcopy
hub / github.com/spf13/cobra / TestArbitraryArgs_WithValid_WithInvalidArgs

Function TestArbitraryArgs_WithValid_WithInvalidArgs

args_test.go:170–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

168}
169
170func TestArbitraryArgs_WithValid_WithInvalidArgs(t *testing.T) {
171 c := getCommand(ArbitraryArgs, true)
172 output, err := executeCommand(c, "a")
173 expectSuccess(output, err, t)
174}
175
176func TestArbitraryArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
177 c := getCommand(MatchAll(OnlyValidArgs, ArbitraryArgs), true)

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
expectSuccessFunction · 0.85

Tested by

no test coverage detected