Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ResetZoneinfoForTesting (0.28 sec)

  1. src/time/zoneinfo_test.go

    	}
    }
    
    func TestEnvVarUsage(t *testing.T) {
    	time.ResetZoneinfoForTesting()
    
    	const testZoneinfo = "foo.zip"
    	const env = "ZONEINFO"
    
    	t.Setenv(env, testZoneinfo)
    
    	// Result isn't important, we're testing the side effect of this command
    	time.LoadLocation("Asia/Jerusalem")
    	defer time.ResetZoneinfoForTesting()
    
    	if zoneinfo := time.ZoneinfoForTesting(); testZoneinfo != *zoneinfo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 13 17:06:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. src/time/export_test.go

    	localLoc = Location{}
    }
    
    func ForceUSPacificForTesting() {
    	ResetLocalOnceForTest()
    	localOnce.Do(initTestingZone)
    }
    
    func ZoneinfoForTesting() *string {
    	return zoneinfo
    }
    
    func ResetZoneinfoForTesting() {
    	zoneinfo = nil
    	zoneinfoOnce = sync.Once{}
    }
    
    var (
    	DisablePlatformSources = disablePlatformSources
    	GorootZoneSource       = gorootZoneSource
    	ParseTimeZone          = parseTimeZone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 19:23:32 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top