export_test.go 466 B

12345678910111213141516171819202122232425
  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. package time
  5. import (
  6. "sync"
  7. )
  8. func ResetLocalOnceForTest() {
  9. localOnce = sync.Once{}
  10. localLoc = Location{}
  11. }
  12. func ForceUSPacificForTesting() {
  13. ResetLocalOnceForTest()
  14. localOnce.Do(initTestingZone)
  15. }
  16. var (
  17. ForceZipFileForTesting = forceZipFileForTesting
  18. ParseTimeZone = parseTimeZone
  19. )