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

Function TestMinimumNArgs_WithLessArgs_WithValid

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

Source from the content-addressed store, hash-verified

212}
213
214func TestMinimumNArgs_WithLessArgs_WithValid(t *testing.T) {
215 c := getCommand(MinimumNArgs(2), true)
216 _, err := executeCommand(c, "one")
217 minimumNArgsWithLessArgs(err, t)
218}
219
220func TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs(t *testing.T) {
221 c := getCommand(MinimumNArgs(2), true)

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
MinimumNArgsFunction · 0.85
executeCommandFunction · 0.85
minimumNArgsWithLessArgsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…