go/src/time/time_test.go

func TestInternal(t *testing.T) {}

func TestZeroTime(t *testing.T) {}

// We should be in PST/PDT, but if the time zone files are missing we
// won't be. The purpose of this test is to at least explain why some of
// the subsequent tests fail.
func TestZoneData(t *testing.T) {}

type parsedTime

type TimeTest

var utctests

var nanoutctests

var localtests

var nanolocaltests

func same(t Time, u *parsedTime) bool {}

func TestUnixUTC(t *testing.T) {}

func TestUnixNanoUTC(t *testing.T) {}

func TestUnix(t *testing.T) {}

func TestUnixNano(t *testing.T) {}

func TestUnixUTCAndBack(t *testing.T) {}

func TestUnixNanoUTCAndBack(t *testing.T) {}

func TestUnixMilli(t *testing.T) {}

func TestUnixMicro(t *testing.T) {}

const unixToZero

// abs returns the absolute time stored in t, as seconds and nanoseconds.
func abs(t Time) (sec, nsec int64) {}

// absString returns abs as a decimal string.
func absString(t Time) string {}

var truncateRoundTests

func TestTruncateRound(t *testing.T) {}

type ISOWeekTest

var isoWeekTests

func TestISOWeek(t *testing.T) {}

type YearDayTest

var yearDayTests

var yearDayLocations

func TestYearDay(t *testing.T) {}

var durationTests

func TestDurationString(t *testing.T) {}

var dateTests

func TestDate(t *testing.T) {}

var addDateTests

func TestAddDate(t *testing.T) {}

var daysInTests

func TestDaysIn(t *testing.T) {}

func TestAddToExactSecond(t *testing.T) {}

func equalTimeAndZone(a, b Time) bool {}

var gobTests

func TestTimeGob(t *testing.T) {}

var invalidEncodingTests

func TestInvalidTimeGob(t *testing.T) {}

var notEncodableTimes

func TestNotGobEncodableTime(t *testing.T) {}

var jsonTests

func TestTimeJSON(t *testing.T) {}

func TestUnmarshalInvalidTimes(t *testing.T) {}

func TestMarshalInvalidTimes(t *testing.T) {}

var parseDurationTests

func TestParseDuration(t *testing.T) {}

var parseDurationErrorTests

func TestParseDurationErrors(t *testing.T) {}

func TestParseDurationRoundTrip(t *testing.T) {}

// golang.org/issue/4622
func TestLocationRace(t *testing.T) {}

var t

var u

var mallocTest

func TestCountMallocs(t *testing.T) {}

func TestLoadFixed(t *testing.T) {}

const minDuration

const maxDuration

var subTests

func TestSub(t *testing.T) {}

var nsDurationTests

func TestDurationNanoseconds(t *testing.T) {}

var usDurationTests

func TestDurationMicroseconds(t *testing.T) {}

var msDurationTests

func TestDurationMilliseconds(t *testing.T) {}

var secDurationTests

func TestDurationSeconds(t *testing.T) {}

var minDurationTests

func TestDurationMinutes(t *testing.T) {}

var hourDurationTests

func TestDurationHours(t *testing.T) {}

var durationTruncateTests

func TestDurationTruncate(t *testing.T) {}

var durationRoundTests

func TestDurationRound(t *testing.T) {}

var durationAbsTests

func TestDurationAbs(t *testing.T) {}

var defaultLocTests

func TestDefaultLoc(t *testing.T) {}

func BenchmarkNow(b *testing.B) {}

func BenchmarkNowUnixNano(b *testing.B) {}

func BenchmarkNowUnixMilli(b *testing.B) {}

func BenchmarkNowUnixMicro(b *testing.B) {}

func BenchmarkFormat(b *testing.B) {}

func BenchmarkFormatRFC3339(b *testing.B) {}

func BenchmarkFormatRFC3339Nano(b *testing.B) {}

func BenchmarkFormatNow(b *testing.B) {}

func BenchmarkMarshalJSON(b *testing.B) {}

func BenchmarkMarshalText(b *testing.B) {}

func BenchmarkMarshalBinary(b *testing.B) {}

func BenchmarkParse(b *testing.B) {}

const testdataRFC3339UTC

func BenchmarkParseRFC3339UTC(b *testing.B) {}

var testdataRFC3339UTCBytes

func BenchmarkParseRFC3339UTCBytes(b *testing.B) {}

const testdataRFC3339TZ

func BenchmarkParseRFC3339TZ(b *testing.B) {}

var testdataRFC3339TZBytes

func BenchmarkParseRFC3339TZBytes(b *testing.B) {}

func BenchmarkParseDuration(b *testing.B) {}

func BenchmarkHour(b *testing.B) {}

func BenchmarkSecond(b *testing.B) {}

func BenchmarkDate(b *testing.B) {}

func BenchmarkYear(b *testing.B) {}

func BenchmarkYearDay(b *testing.B) {}

func BenchmarkMonth(b *testing.B) {}

func BenchmarkDay(b *testing.B) {}

func BenchmarkISOWeek(b *testing.B) {}

func BenchmarkGoString(b *testing.B) {}

func BenchmarkDateFunc(b *testing.B) {}

func BenchmarkUnmarshalText(b *testing.B) {}

func TestMarshalBinaryZeroTime(t *testing.T) {}

func TestMarshalBinaryVersion2(t *testing.T) {}

func TestUnmarshalTextAllocations(t *testing.T) {}

// Issue 17720: Zero value of time.Month fails to print
func TestZeroMonthString(t *testing.T) {}

// Issue 24692: Out of range weekday panics
func TestWeekdayString(t *testing.T) {}

func TestReadFileLimit(t *testing.T) {}

// Issue 25686: hard crash on concurrent timer access.
// Issue 37400: panic with "racy use of timers"
// This test deliberately invokes a race condition.
// We are testing that we don't crash with "fatal error: panic holding locks",
// and that we also don't panic.
func TestConcurrentTimerReset(t *testing.T) {}

// Issue 37400: panic with "racy use of timers".
func TestConcurrentTimerResetStop(t *testing.T) {}

func TestTimeIsDST(t *testing.T) {}

func TestTimeAddSecOverflow(t *testing.T) {}

// Issue 49284: time: ParseInLocation incorrectly because of Daylight Saving Time
func TestTimeWithZoneTransition(t *testing.T) {}

func TestZoneBounds(t *testing.T) {}