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

Function TestRangeArgs_WithInvalidCount_WithValid

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

Source from the content-addressed store, hash-verified

362}
363
364func TestRangeArgs_WithInvalidCount_WithValid(t *testing.T) {
365 c := getCommand(RangeArgs(2, 4), true)
366 _, err := executeCommand(c, "two")
367 rangeArgsWithInvalidCount(err, t)
368}
369
370func TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing.T) {
371 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