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

Function TestExactArgs_WithInvalidCount_WithValid

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

Source from the content-addressed store, hash-verified

312}
313
314func TestExactArgs_WithInvalidCount_WithValid(t *testing.T) {
315 c := getCommand(ExactArgs(2), true)
316 _, err := executeCommand(c, "three", "one", "two")
317 exactArgsWithInvalidCount(err, t)
318}
319
320func TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing.T) {
321 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