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

Function TestArbitraryArgs_WithValidOnly_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

174}
175
176func TestArbitraryArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
177 c := getCommand(MatchAll(OnlyValidArgs, ArbitraryArgs), true)
178 _, err := executeCommand(c, "a")
179 validOnlyWithInvalidArgs(err, t)
180}
181
182// MinimumNArgs
183

Callers

nothing calls this directly

Calls 4

getCommandFunction · 0.85
MatchAllFunction · 0.85
executeCommandFunction · 0.85
validOnlyWithInvalidArgsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…