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

Function TestRangeArgs_WithInvalidCount

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

Source from the content-addressed store, hash-verified

356}
357
358func TestRangeArgs_WithInvalidCount(t *testing.T) {
359 c := getCommand(RangeArgs(2, 4), false)
360 _, err := executeCommand(c, "a")
361 rangeArgsWithInvalidCount(err, t)
362}
363
364func TestRangeArgs_WithInvalidCount_WithValid(t *testing.T) {
365 c := getCommand(RangeArgs(2, 4), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
RangeArgsFunction · 0.85
executeCommandFunction · 0.85

Tested by

no test coverage detected