- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for testfn (0.13 sec)
-
pkg/test/framework/components/echo/echotest/run.go
// }) func (t *T) RunFromClusters(testFn oneClusterOneTest) { t.toEachDeployment(t.rootCtx, func(ctx framework.TestContext, dstInstances echo.Instances) { t.setupPair(ctx, nil, echo.Services{dstInstances}) if len(ctx.Clusters()) == 1 { testFn(ctx, ctx.Clusters()[0], dstInstances) } else { t.fromEachCluster(ctx, func(ctx framework.TestContext, c cluster.Cluster) { testFn(ctx, c, dstInstances) }) } })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 22:08:42 UTC 2023 - 13K bytes - Viewed (0) -
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) -
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) -
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) -
src/cmd/link/internal/ld/dwarf_test.go
zeroSizedVariable := struct{}{} fmt.Println(zeroSizedVariable) } ` func TestZeroSizedVariable(t *testing.T) { testenv.MustHaveGoBuild(t) mustHaveDWARF(t) t.Parallel() if testing.Short() { t.Skip("skipping test in short mode.") } // This test verifies that the compiler emits DIEs for zero sized variables // (for example variables of type 'struct {}').
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 01:38:11 UTC 2024 - 48.6K bytes - Viewed (0) -
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) -
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) -
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) -
src/archive/tar/reader_test.go
tests: []testFnc{ testRead{100, "\x00", io.ErrUnexpectedEOF}, }, }, { maker: makeSparse{makeReg{"ab", 2}, sparseDatas{{1, 3}, {6, 5}}, 15}, tests: []testFnc{ testRead{100, "\x00ab", errMissData}, }, }, { maker: makeSparse{makeReg{"ab", 8}, sparseDatas{{1, 3}, {6, 5}}, 15}, tests: []testFnc{ testRead{100, "\x00ab", io.ErrUnexpectedEOF},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 21:14:38 UTC 2022 - 47.1K bytes - Viewed (0) -
src/archive/tar/writer_test.go
tests: []testFnc{ testWrite{"\x00\x00abcde", 5, errWriteHole}, }, }, { maker: makeSparse{makeReg{3, "abc"}, sparseHoles{{0, 2}, {5, 2}}, 7}, tests: []testFnc{ testWrite{"\x00\x00abc\x00\x00z", 7, ErrWriteTooLong}, testRemaining{0, 0}, }, }, { maker: makeSparse{makeReg{3, "abc"}, sparseHoles{{0, 2}, {5, 2}}, 7}, tests: []testFnc{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 38.7K bytes - Viewed (0)