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

Function TestMaximumNArgs_WithMoreArgs_WithValid

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

Source from the content-addressed store, hash-verified

262}
263
264func TestMaximumNArgs_WithMoreArgs_WithValid(t *testing.T) {
265 c := getCommand(MaximumNArgs(2), true)
266 _, err := executeCommand(c, "one", "three", "two")
267 maximumNArgsWithMoreArgs(err, t)
268}
269
270func TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs(t *testing.T) {
271 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