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

Function TestNoArgs

args_test.go:112–116  ·  view source on GitHub ↗

NoArgs

(t *testing.T)

Source from the content-addressed store, hash-verified

110// NoArgs
111
112func TestNoArgs(t *testing.T) {
113 c := getCommand(NoArgs, false)
114 output, err := executeCommand(c)
115 expectSuccess(output, err, t)
116}
117
118func TestNoArgs_WithArgs(t *testing.T) {
119 c := getCommand(NoArgs, false)

Callers

nothing calls this directly

Calls 3

getCommandFunction · 0.85
executeCommandFunction · 0.85
expectSuccessFunction · 0.85

Tested by

no test coverage detected