- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ForceUSPacificForTesting (0.21 sec)
-
src/time/zoneinfo_windows_test.go
} } func TestUSPacificZoneAbbr(t *testing.T) { ForceUSPacificFromTZIForTesting() // reset the Once to trigger the race defer ForceUSPacificForTesting() testZoneAbbr(t) } func TestAusZoneAbbr(t *testing.T) { ForceAusFromTZIForTesting() defer ForceUSPacificForTesting() testZoneAbbr(t) } func TestToEnglishName(t *testing.T) { const want = "Central Europe Standard Time"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 07:20:34 UTC 2023 - 1.8K bytes - Viewed (0) -
src/time/internal_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package time func init() { // Force US/Pacific for time zone tests. ForceUSPacificForTesting() } func initTestingZone() { // For hermeticity, use only tzinfo source from the test's GOROOT, // not the system sources and not whatever GOROOT may happen to be // set in the process's environment (if any).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:37 UTC 2024 - 2.2K bytes - Viewed (0) -
src/time/time_test.go
c := make(chan string, 1) go func() { c <- Now().String() }() _ = Now().String() <-c Sleep(100 * Millisecond) // Back to Los Angeles for subsequent tests: ForceUSPacificForTesting() } var ( t Time u int64 ) var mallocTest = []struct { count int desc string fn func() }{ {0, `time.Now()`, func() { t = Now() }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)