go/src/time/format_test.go

var nextStdChunkTests

func TestNextStdChunk(t *testing.T) {}

type TimeFormatTest

var rfc3339Formats

func TestRFC3339Conversion(t *testing.T) {}

func TestAppendInt(t *testing.T) {}

type FormatTest

var formatTests

func TestFormat(t *testing.T) {}

var goStringTests

func TestGoString(t *testing.T) {}

// issue 12440.
func TestFormatSingleDigits(t *testing.T) {}

func TestFormatShortYear(t *testing.T) {}

type ParseTest

var parseTests

func TestParse(t *testing.T) {}

var dayOutOfRangeTests

func TestParseDayOutOfRange(t *testing.T) {}

// TestParseInLocation checks that the Parse and ParseInLocation
// functions do not get confused by the fact that AST (Arabia Standard
// Time) and AST (Atlantic Standard Time) are different time zones,
// even though they have the same abbreviation.
//
// ICANN has been slowly phasing out invented abbreviation in favor of
// numeric time zones (for example, the Asia/Baghdad time zone
// abbreviation got changed from AST to +03 in the 2017a tzdata
// release); but we still want to make sure that the time package does
// not get confused on systems with slightly older tzdata packages.
func TestParseInLocation(t *testing.T) {}

func TestLoadLocationZipFile(t *testing.T) {}

var rubyTests

// Problematic time zone format needs special tests.
func TestRubyParse(t *testing.T) {}

func checkTime(time Time, test *ParseTest, t *testing.T) {}

func TestFormatAndParse(t *testing.T) {}

type ParseTimeZoneTest

var parseTimeZoneTests

func TestParseTimeZone(t *testing.T) {}

type ParseErrorTest

var parseErrorTests

func TestParseErrors(t *testing.T) {}

func TestNoonIs12PM(t *testing.T) {}

func TestMidnightIs12AM(t *testing.T) {}

func Test12PMIsNoon(t *testing.T) {}

func Test12AMIsMidnight(t *testing.T) {}

// Check that a time without a Zone still produces a (numeric) time zone
// when formatted with MST as a requested zone.
func TestMissingZone(t *testing.T) {}

func TestMinutesInTimeZone(t *testing.T) {}

type SecondsTimeZoneOffsetTest

var secondsTimeZoneOffsetTests

func TestParseSecondsInTimeZone(t *testing.T) {}

func TestFormatSecondsInTimeZone(t *testing.T) {}

// Issue 11334.
func TestUnderscoreTwoThousand(t *testing.T) {}

// Issue 29918, 29916
func TestStd0xParseError(t *testing.T) {}

var monthOutOfRangeTests

func TestParseMonthOutOfRange(t *testing.T) {}

// Issue 37387.
func TestParseYday(t *testing.T) {}

// Issue 45391.
func TestQuote(t *testing.T) {}

// Issue 48037
func TestFormatFractionalSecondSeparators(t *testing.T) {}

var longFractionalDigitsTests

// Issue 48685 and 54567.
func TestParseFractionalSecondsLongerThanNineDigits(t *testing.T) {}

func FuzzFormatRFC3339(f *testing.F) {}

func FuzzParseRFC3339(f *testing.F) {}