Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TESTGONETWORK (0.35 sec)

  1. src/cmd/go/script_test.go

    		"GOPRIVATE=",
    		"GOROOT=" + testGOROOT,
    		"GOTRACEBACK=system",
    		"TESTGONETWORK=panic", // allow only local connections by default; the [net] condition resets this
    		"TESTGO_GOROOT=" + testGOROOT,
    		"TESTGO_EXE=" + testGo,
    		"TESTGO_VCSTEST_HOST=" + httpURL.Host,
    		"TESTGO_VCSTEST_TLS_HOST=" + httpsURL.Host,
    		"TESTGO_VCSTEST_CERT=" + srvCertFile,
    		"TESTGONETWORK=panic", // cleared by the [net] condition
    		"GOSUMDB=" + testSumDBVerifierKey,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/cmd/go/scriptconds_test.go

    			t.Cleanup(func() {
    				<-netTestSem
    				scriptNetEnabled.Delete(t)
    			})
    		}
    	}
    
    	// Since we have confirmed that the network is available,
    	// allow cmd/go to use it.
    	s.Setenv("TESTGONETWORK", "")
    	return true, nil
    }
    
    func hasGodebug(s *script.State, value string) (bool, error) {
    	godebug, _ := s.LookupEnv("GODEBUG")
    	for _, p := range strings.Split(godebug, ",") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/web/http.go

    				}
    				return res, nil
    			}
    
    		case "localhost.localdev":
    			return nil, fmt.Errorf("no such host localhost.localdev")
    
    		default:
    			if os.Getenv("TESTGONETWORK") == "panic" {
    				if _, ok := interceptURL(url); !ok {
    					host := url.Host
    					if h, _, err := net.SplitHostPort(url.Host); err == nil && h != "" {
    						host = h
    					}
    					addr := net.ParseIP(host)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. src/cmd/go/go_test.go

    }
    
    // unsetenv removes an environment variable.
    func (tg *testgoData) unsetenv(name string) {
    	if tg.env == nil {
    		tg.env = append([]string(nil), os.Environ()...)
    		tg.env = append(tg.env, "GO111MODULE=off", "TESTGONETWORK=panic")
    		if testing.Short() {
    			tg.env = append(tg.env, "TESTGOVCS=panic")
    		}
    	}
    	for i, v := range tg.env {
    		if strings.HasPrefix(v, name+"=") {
    			tg.env = append(tg.env[:i], tg.env[i+1:]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top