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

Function TestNoArgs_WithValid_WithInvalidArgs

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

Source from the content-addressed store, hash-verified

128}
129
130func TestNoArgs_WithValid_WithInvalidArgs(t *testing.T) {
131 c := getCommand(NoArgs, true)
132 _, err := executeCommand(c, "a")
133 noArgsWithArgs(err, t, "a")
134}
135
136func TestNoArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {
137 c := getCommand(MatchAll(OnlyValidArgs, NoArgs), true)

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
noArgsWithArgsFunction · 0.85

Tested by

no test coverage detected