github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/time/export_test.go (about) 1 // Copyright 2013 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package time 6 7 import ( 8 "sync" 9 ) 10 11 func ResetLocalOnceForTest() { 12 localOnce = sync.Once{} 13 localLoc = Location{} 14 } 15 16 func ForceUSPacificForTesting() { 17 ResetLocalOnceForTest() 18 localOnce.Do(initTestingZone) 19 }