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
5package time
6
7import (
8	"sync"
9)
10
11func ResetLocalOnceForTest() {
12	localOnce = sync.Once{}
13	localLoc = Location{}
14}
15
16func ForceUSPacificForTesting() {
17	ResetLocalOnceForTest()
18	localOnce.Do(initTestingZone)
19}
20
21func ZoneinfoForTesting() *string {
22	return zoneinfo
23}
24
25func ResetZoneinfoForTesting() {
26	zoneinfo = nil
27	zoneinfoOnce = sync.Once{}
28}
29
30var (
31	ForceZipFileForTesting = forceZipFileForTesting
32	ParseTimeZone          = parseTimeZone
33	SetMono                = (*Time).setMono
34	GetMono                = (*Time).mono
35	ErrLocation            = errLocation
36	ReadFile               = readFile
37	LoadTzinfo             = loadTzinfo
38)
39