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

Function TestMaximumNArgs_WithMoreArgs

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

Source from the content-addressed store, hash-verified

256}
257
258func TestMaximumNArgs_WithMoreArgs(t *testing.T) {
259 c := getCommand(MaximumNArgs(2), false)
260 _, err := executeCommand(c, "a", "b", "c")
261 maximumNArgsWithMoreArgs(err, t)
262}
263
264func TestMaximumNArgs_WithMoreArgs_WithValid(t *testing.T) {
265 c := getCommand(MaximumNArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
MaximumNArgsFunction · 0.85
executeCommandFunction · 0.85
maximumNArgsWithMoreArgsFunction · 0.85

Tested by

no test coverage detected