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

Function TestMaximumNArgs_WithValid

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

Source from the content-addressed store, hash-verified

238}
239
240func TestMaximumNArgs_WithValid(t *testing.T) {
241 c := getCommand(MaximumNArgs(2), true)
242 output, err := executeCommand(c, "one", "three")
243 expectSuccess(output, err, t)
244}
245
246func TestMaximumNArgs_WithValid_WithInvalidArgs(t *testing.T) {
247 c := getCommand(MaximumNArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
MaximumNArgsFunction · 0.85
executeCommandFunction · 0.85
expectSuccessFunction · 0.85

Tested by

no test coverage detected