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

Function TestExactValidArgs_WithInvalidCount_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

500}
501
502func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) {
503 c := getCommand(ExactValidArgs(2), true)
504 _, err := executeCommand(c, "three", "a", "two")
505 exactArgsWithInvalidCount(err, t)
506}
507
508func TestExactValidArgs_WithInvalidArgs(t *testing.T) {
509 c := getCommand(ExactValidArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
ExactValidArgsFunction · 0.85
executeCommandFunction · 0.85

Tested by

no test coverage detected