MCPcopy
hub / github.com/urfave/cli / buildMinimalTestCommand

Function buildMinimalTestCommand

command_test.go:3202–3206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3200}
3201
3202func buildMinimalTestCommand() *Command {
3203 // reset the help flag because tests may have set it
3204 HelpFlag.(*BoolFlag).hasBeenSet = false
3205 return &Command{Writer: io.Discard}
3206}
3207
3208func TestSetupInitializesBothWriters(t *testing.T) {
3209 cmd := &Command{}

Callers 15

TestArgsMaxNotSetFunction · 0.85
TestArgsMinGtMaxFunction · 0.85
TestArgsFloatTypesFunction · 0.85
TestArgsIntTypesFunction · 0.85
TestArgsFloatSliceTypesFunction · 0.85
TestArgsIntSliceTypesFunction · 0.85
TestArgsUintTypesFunction · 0.85
TestArgsUintSliceTypesFunction · 0.85
TestArgumentsRootCommandFunction · 0.85
TestArgumentsInvalidTypeFunction · 0.85
TestArgumentsSubcommandFunction · 0.85
TestSingleOptionalArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected