Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isEnvSet (0.13 sec)

  1. src/cmd/dist/test.go

    	unsupportedVMA := []byte("unsupported VMA range")
    	return strings.Contains(w.dt.name, ":race") && bytes.Contains(w.out.Bytes(), unsupportedVMA)
    }
    
    // isEnvSet reports whether the environment variable evar is
    // set in the environment.
    func isEnvSet(evar string) bool {
    	evarEq := evar + "="
    	for _, e := range os.Environ() {
    		if strings.HasPrefix(e, evarEq) {
    			return true
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  2. src/testing/testing.go

    // Test function.
    //
    // The other reporting methods, such as the variations of Log and Error,
    // may be called simultaneously from multiple goroutines.
    type T struct {
    	common
    	isEnvSet bool
    	context  *testContext // For running tests and subtests.
    }
    
    func (c *common) private() {}
    
    // Name returns the name of the running (sub-) test or benchmark.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top