go/src/flag/flag_test.go

func boolString(s string) string {}

func TestEverything(t *testing.T) {}

func TestGet(t *testing.T) {}

func TestUsage(t *testing.T) {}

func testParse(f *FlagSet, t *testing.T) {}

func TestParse(t *testing.T) {}

func TestFlagSetParse(t *testing.T) {}

type flagVar

func (f *flagVar) String() string {}

func (f *flagVar) Set(value string) error {}

func TestUserDefined(t *testing.T) {}

func TestUserDefinedFunc(t *testing.T) {}

func TestUserDefinedForCommandLine(t *testing.T) {}

type boolFlagVar

func (b *boolFlagVar) String() string {}

func (b *boolFlagVar) Set(value string) error {}

func (b *boolFlagVar) IsBoolFlag() bool {}

func TestUserDefinedBool(t *testing.T) {}

func TestUserDefinedBoolUsage(t *testing.T) {}

func TestSetOutput(t *testing.T) {}

// This tests that one can reset the flags. This still works but not well, and is
// superseded by FlagSet.
func TestChangingArgs(t *testing.T) {}

// Test that -help invokes the usage message and returns ErrHelp.
func TestHelp(t *testing.T) {}

type zeroPanicker

func (f *zeroPanicker) Set(s string) error {}

func (f *zeroPanicker) String() string {}

const defaultOutput

func TestPrintDefaults(t *testing.T) {}

// Issue 19230: validate range of Int and Uint flag values.
func TestIntFlagOverflow(t *testing.T) {}

// Issue 20998: Usage should respect CommandLine.output.
func TestUsageOutput(t *testing.T) {}

func TestGetters(t *testing.T) {}

func TestParseError(t *testing.T) {}

func TestRangeError(t *testing.T) {}

func TestExitCode(t *testing.T) {}

func mustPanic(t *testing.T, testName string, expected string, f func()) {}

func TestInvalidFlags(t *testing.T) {}

func TestRedefinedFlags(t *testing.T) {}

func TestUserDefinedBoolFunc(t *testing.T) {}

func TestDefineAfterSet(t *testing.T) {}