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

Function TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

224}
225
226func TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
227 c := getCommand(MatchAll(OnlyValidArgs, MinimumNArgs(2)), true)
228 _, err := executeCommand(c, "a")
229 validOnlyWithInvalidArgs(err, t)
230}
231
232// MaximumNArgs
233

Callers

nothing calls this directly

Calls 5

getCommandFunction · 0.85
MatchAllFunction · 0.85
MinimumNArgsFunction · 0.85
executeCommandFunction · 0.85
validOnlyWithInvalidArgsFunction · 0.85

Tested by

no test coverage detected