Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testPerf (0.17 sec)

  1. src/net/http/serve_test.go

    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    	testAutomaticHTTP2_ListenAndServe(t, &tls.Config{
    		Certificates: []tls.Certificate{cert},
    	})
    }
    
    func TestAutomaticHTTP2_ListenAndServe_GetCertificate(t *testing.T) {
    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    		}
    		res.Body.Close()
    	}
    }
    
    // Issue 13839
    func TestNoCrashReturningTransportAltConn(t *testing.T) {
    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	var wg sync.WaitGroup
    	SetPendingDialHooks(func() { wg.Add(1) }, wg.Done)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	if x.pos >= len(x.last) {
    		x.last = append(x.last, choice{x.r.Intn(max), 0, max})
    	}
    	c := &x.last[x.pos]
    	x.pos++
    	if c.max != max {
    		panic("inconsistent use of exhaustive tester")
    	}
    	return (c.n + c.off) % max
    }
    
    func (x *exhaustive) Maybe() bool {
    	return x.Choose(2) == 1
    }
    
    func GCFunc(args []Value) []Value {
    	runtime.GC()
    	return []Value{}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top