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

Function TestOnlyValidArgs_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

148}
149
150func TestOnlyValidArgs_WithInvalidArgs(t *testing.T) {
151 c := getCommand(OnlyValidArgs, true)
152 _, err := executeCommand(c, "a")
153 validOnlyWithInvalidArgs(err, t)
154}
155
156// ArbitraryArgs
157

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
validOnlyWithInvalidArgsFunction · 0.85

Tested by

no test coverage detected