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

Function TestArbitraryArgs

args_test.go:158–162  ·  view source on GitHub ↗

ArbitraryArgs

(t *testing.T)

Source from the content-addressed store, hash-verified

156// ArbitraryArgs
157
158func TestArbitraryArgs(t *testing.T) {
159 c := getCommand(ArbitraryArgs, false)
160 output, err := executeCommand(c, "a", "b")
161 expectSuccess(output, err, t)
162}
163
164func TestArbitraryArgs_WithValid(t *testing.T) {
165 c := getCommand(ArbitraryArgs, true)

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
expectSuccessFunction · 0.85

Tested by

no test coverage detected