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

Function TestArbitraryArgs_WithValid

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

Source from the content-addressed store, hash-verified

162}
163
164func TestArbitraryArgs_WithValid(t *testing.T) {
165 c := getCommand(ArbitraryArgs, true)
166 output, err := executeCommand(c, "one", "two")
167 expectSuccess(output, err, t)
168}
169
170func TestArbitraryArgs_WithValid_WithInvalidArgs(t *testing.T) {
171 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