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

Function TestNoArgs_WithArgs

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

Source from the content-addressed store, hash-verified

116}
117
118func TestNoArgs_WithArgs(t *testing.T) {
119 c := getCommand(NoArgs, false)
120 _, err := executeCommand(c, "one")
121 noArgsWithArgs(err, t, "one")
122}
123
124func TestNoArgs_WithValid_WithArgs(t *testing.T) {
125 c := getCommand(NoArgs, true)

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
noArgsWithArgsFunction · 0.85

Tested by

no test coverage detected