- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for initTestingZone (3.82 sec)
-
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/export_test.go
package time import ( "sync" ) func ResetLocalOnceForTest() { localOnce = sync.Once{} localLoc = Location{} } func ForceUSPacificForTesting() { ResetLocalOnceForTest() localOnce.Do(initTestingZone) } func ZoneinfoForTesting() *string { return zoneinfo } func ResetZoneinfoForTesting() { zoneinfo = nil zoneinfoOnce = sync.Once{} } var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 19:23:32 UTC 2022 - 4K bytes - Viewed (0)