Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for testfn (0.18 sec)

  1. src/math/rand/v2/rand_test.go

    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    	testWn[127] = float32(dn / m1)
    	testFn[0] = 1.0
    	testFn[127] = float32(math.Exp(-0.5 * dn * dn))
    	for i := 126; i >= 1; i-- {
    		dn = math.Sqrt(-2.0 * math.Log(vn/dn+math.Exp(-0.5*dn*dn)))
    		testKn[i+1] = uint32((dn / tn) * m1)
    		tn = dn
    		testFn[i] = float32(math.Exp(-0.5 * dn * dn))
    		testWn[i] = float32(dn / m1)
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/math/rand/rand_test.go

    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    	testWn[127] = float32(dn / m1)
    	testFn[0] = 1.0
    	testFn[127] = float32(math.Exp(-0.5 * dn * dn))
    	for i := 126; i >= 1; i-- {
    		dn = math.Sqrt(-2.0 * math.Log(vn/dn+math.Exp(-0.5*dn*dn)))
    		testKn[i+1] = uint32((dn / tn) * m1)
    		tn = dn
    		testFn[i] = float32(math.Exp(-0.5 * dn * dn))
    		testWn[i] = float32(dn / m1)
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_control_test.go

    		}
    		if !test.err && !history.EqualRevision(update, test.expectedUpdate) {
    			t.Errorf("%s: for update want %v got %v", test.name, test.expectedUpdate, update)
    		}
    		if !test.err && test.expectedCurrent != nil && current != nil && test.expectedCurrent.Revision != current.Revision {
    			t.Errorf("%s: for current revision want %d got %d", test.name, test.expectedCurrent.Revision, current.Revision)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_pod_control_test.go

    	}
    }
    
    func TestStatefulPodControlUpdatePodClaimForRetentionPolicy(t *testing.T) {
    	// All the update conditions are tested exhaustively in stateful_set_utils_test. This
    	// tests the wiring from the pod control to that method.
    	testFn := func(t *testing.T) {
    		_, ctx := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/server_test.go

    	}
    	t.ResetTimer()
    	return server
    }
    
    func BenchmarkStats(t *testing.B) {
    	tests := map[int]string{
    		1:        "1kb",
    		1 << 10:  "1mb",
    		10 << 10: "10mb",
    	}
    	for size, v := range tests {
    		server := initServerWithSize(t, size)
    		t.Run("stats-fmttext-"+v, func(t *testing.B) {
    			for i := 0; i < t.N; i++ {
    				req := &http.Request{}
    				req.Header = make(http.Header)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/httproute_test.go

    				"test-headless.com:8888": {"test-headless.com:8888": true, "*.test-headless.com:8888": true},
    				"test-private-2.com:60": {
    					"test-private-2.com:60": true, "9.9.9.10:60": true,
    				},
    				"test-private.com:70": {
    					"test-private.com:70": true, "9.9.9.9:70": true,
    				},
    				"test-private.com:80": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_test.go

    	if !got.Equal(want) {
    		t.Errorf("getPodsForStatefulSet() = %v, want %v", got, want)
    	}
    }
    
    func TestOrphanedPodsWithPVCDeletePolicy(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StatefulSetAutoDeletePVC, true)
    
    	testFn := func(t *testing.T, scaledownPolicy, deletionPolicy apps.PersistentVolumeClaimRetentionPolicyType) {
    		set := newStatefulSet(4)
    		*set.Spec.Replicas = 2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. src/testing/fstest/testfs.go

    // The contents of fsys must not change concurrently with TestFS.
    //
    // If TestFS finds any misbehaviors, it returns either the first error or a
    // list of errors. Use [errors.Is] or [errors.As] to inspect.
    //
    // Typical usage inside a test is:
    //
    //	if err := fstest.TestFS(myFS, "file/that/should/be/present"); err != nil {
    //		t.Fatal(err)
    //	}
    func TestFS(fsys fs.FS, expected ...string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/testing-dependencies.md

    # Testen mit Ersatz für Abhängigkeiten
    
    ## Abhängigkeiten beim Testen überschreiben
    
    Es gibt einige Szenarien, in denen Sie beim Testen möglicherweise eine Abhängigkeit überschreiben möchten.
    
    Sie möchten nicht, dass die ursprüngliche Abhängigkeit ausgeführt wird (und auch keine der möglicherweise vorhandenen Unterabhängigkeiten).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:32 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/testing-websockets.md

    # WebSockets testen
    
    Sie können den schon bekannten `TestClient` zum Testen von WebSockets verwenden.
    
    Dazu verwenden Sie den `TestClient` in einer `with`-Anweisung, eine Verbindung zum WebSocket herstellend:
    
    ```Python hl_lines="27-31"
    {!../../../docs_src/app_testing/tutorial002.py!}
    ```
    
    !!! note "Hinweis"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:48 UTC 2024
    - 522 bytes
    - Viewed (0)
Back to top