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

Function TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

274}
275
276func TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
277 c := getCommand(MatchAll(OnlyValidArgs, MaximumNArgs(2)), true)
278 _, err := executeCommand(c, "a", "b", "c")
279 validOnlyWithInvalidArgs(err, t)
280}
281
282// ExactArgs
283

Callers

nothing calls this directly

Calls 5

getCommandFunction · 0.85
MatchAllFunction · 0.85
MaximumNArgsFunction · 0.85
executeCommandFunction · 0.85
validOnlyWithInvalidArgsFunction · 0.85

Tested by

no test coverage detected