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

Function TestMinimumNArgs_WithValid

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

Source from the content-addressed store, hash-verified

188}
189
190func TestMinimumNArgs_WithValid(t *testing.T) {
191 c := getCommand(MinimumNArgs(2), true)
192 output, err := executeCommand(c, "one", "three")
193 expectSuccess(output, err, t)
194}
195
196func TestMinimumNArgs_WithValid__WithInvalidArgs(t *testing.T) {
197 c := getCommand(MinimumNArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
MinimumNArgsFunction · 0.85
executeCommandFunction · 0.85
expectSuccessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…