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

Function TestExactValidArgs_WithInvalidCount

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

Source from the content-addressed store, hash-verified

494}
495
496func TestExactValidArgs_WithInvalidCount(t *testing.T) {
497 c := getCommand(ExactValidArgs(2), false)
498 _, err := executeCommand(c, "three", "one", "two")
499 exactArgsWithInvalidCount(err, t)
500}
501
502func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) {
503 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