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

Function TestNoArgs_WithValidOnly_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

134}
135
136func TestNoArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
137 c := getCommand(MatchAll(OnlyValidArgs, NoArgs), true)
138 _, err := executeCommand(c, "a")
139 validOnlyWithInvalidArgs(err, t)
140}
141
142// OnlyValidArgs
143

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