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

Function TestMinimumNArgs_WithLessArgs

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

Source from the content-addressed store, hash-verified

206}
207
208func TestMinimumNArgs_WithLessArgs(t *testing.T) {
209 c := getCommand(MinimumNArgs(2), false)
210 _, err := executeCommand(c, "a")
211 minimumNArgsWithLessArgs(err, t)
212}
213
214func TestMinimumNArgs_WithLessArgs_WithValid(t *testing.T) {
215 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