Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEnvVarUsage (0.16 sec)

  1. src/time/zoneinfo_test.go

    	"os"
    	"reflect"
    	"testing"
    	"time"
    )
    
    func init() {
    	if time.ZoneinfoForTesting() != nil {
    		panic(fmt.Errorf("zoneinfo initialized before first LoadLocation"))
    	}
    }
    
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 13 17:06:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top