Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for TestFn (0.24 sec)

  1. 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)
  2. test/fixedbugs/bug455.go

    // Used to happen with 6g.
    
    package main
    
    type test_i interface {
    	Test() test_i
    	Result() bool
    }
    
    type test_t struct {
    }
    
    func newTest() *test_t {
    	return &test_t{}
    }
    
    type testFn func(string) testFn
    
    func main() {
    	test := newTest()
    
    	switch {
    	case test.
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 777 bytes
    - Viewed (0)
  3. src/math/rand/v2/rand_test.go

    //
    
    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    	testWn = make([]float32, 128)
    	testFn = make([]float32, 128)
    
    	q := vn / math.Exp(-0.5*dn*dn)
    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. pkg/controller/history/controller_history_test.go

    		},
    	}
    	for i := range tests {
    		testFn(&tests[i], t)
    	}
    }
    
    func TestFakeHistory_ListControllerRevisions(t *testing.T) {
    	type testcase struct {
    		name      string
    		parent    metav1.Object
    		selector  labels.Selector
    		revisions []*apps.ControllerRevision
    		want      map[string]bool
    	}
    	testFn := func(test *testcase, t *testing.T) {
    		client := fake.NewSimpleClientset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  5. src/math/rand/rand_test.go

    //
    
    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    	testWn = make([]float32, 128)
    	testFn = make([]float32, 128)
    
    	q := vn / math.Exp(-0.5*dn*dn)
    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

      return node;
    }
    
    }  // namespace
    
    GraphDef DeviceCompilerSerializeTest::GetTestGraph(
        const PartialTensorShape& input_shape) {
      FunctionDef make_test_fn = FunctionDefHelper::Define(
          "TestFn", {"a:float", "b:float", "c:float"}, {"m:float"}, {},
          {{{"d"}, "Add", {"a", "b"}, {{"T", DT_FLOAT}}},
           {{"e"}, "Mul", {"d", "c"}, {{"T", DT_FLOAT}}},
           {{"f"}, "Add", {"e", "a"}, {{"T", DT_FLOAT}}},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_control_test.go

    			fnName = fnName[i+1:]
    		}
    		testObj := testCase.obj
    		testFn := testCase.fn
    		runTestOverPVCRetentionPolicies(
    			t,
    			fmt.Sprintf("%s/Monotonic", fnName),
    			func(t *testing.T, policy *apps.StatefulSetPersistentVolumeClaimRetentionPolicy) {
    				set := testObj()
    				set.Spec.PersistentVolumeClaimRetentionPolicy = policy
    				testFn(t, set, assertMonotonicInvariants)
    			},
    		)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_pod_control_test.go

    		featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StatefulSetAutoDeletePVC, true)
    		testFn(t)
    	})
    	t.Run("StatefulSetAutoDeletePVCDisabled", func(t *testing.T) {
    		featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StatefulSetAutoDeletePVC, false)
    		testFn(t)
    	})
    }
    
    func TestPodClaimIsStale(t *testing.T) {
    	const missing = "missing"
    	const exists = "exists"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/dwarf_test.go

    	mustHaveDWARF(t)
    	t.Parallel()
    
    	const prog = `
    package main
    
    import "fmt"
    
    type CustomInt int
    
    func testfn[T any](arg T) {
    	var mapvar = make(map[int]T)
    	mapvar[0] = arg
    	fmt.Println(arg, mapvar)
    }
    
    func main() {
    	testfn(CustomInt(3))
    }
    `
    
    	dir := t.TempDir()
    	f := gobuild(t, dir, prog, NoOpt)
    	defer f.Close()
    
    	d, err := f.DWARF()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/status/server_test.go

    					HTTPGet: &apimirror.HTTPGetAction{
    						Path: "remote-redirect",
    						Port: apimirror.IntOrString{IntVal: int32(appPort)},
    					},
    				},
    			},
    			statusCode: http.StatusOK,
    		},
    	}
    	testFn := func(t *testing.T, tc test) {
    		appProber, err := json.Marshal(tc.config)
    		if err != nil {
    			t.Fatalf("invalid app probers")
    		}
    		config := Options{
    			KubeAppProbers: string(appProber),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top