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

Function TestExactArgs_WithInvalidCount

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

Source from the content-addressed store, hash-verified

306}
307
308func TestExactArgs_WithInvalidCount(t *testing.T) {
309 c := getCommand(ExactArgs(2), false)
310 _, err := executeCommand(c, "a", "b", "c")
311 exactArgsWithInvalidCount(err, t)
312}
313
314func TestExactArgs_WithInvalidCount_WithValid(t *testing.T) {
315 c := getCommand(ExactArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
ExactArgsFunction · 0.85
executeCommandFunction · 0.85

Tested by

no test coverage detected