Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ZoneinfoForTesting (0.11 sec)

  1. src/time/zoneinfo_test.go

    // license that can be found in the LICENSE file.
    
    package time_test
    
    import (
    	"errors"
    	"fmt"
    	"internal/testenv"
    	"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"
    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