Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for testfunc0 (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/api_object_versioner_test.go

    		{Version: " ", Err: true},
    		{Version: "1", ExpectVersion: 1},
    		{Version: "10", ExpectVersion: 10},
    	}
    
    	v := APIObjectVersioner{}
    	testFuncs := []func(string) (uint64, error){
    		v.ParseResourceVersion,
    	}
    
    	for _, testCase := range testCases {
    		for i, f := range testFuncs {
    			version, err := f(testCase.Version)
    			switch {
    			case testCase.Err && err == nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 16:18:15 UTC 2022
    - 3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    		fmt.Fprintf(w, "  a,b int%d\n", sz)
    		fmt.Fprintf(w, "  add,sub,mul,div,mod int%d\n", sz)
    		fmt.Fprintf(w, "}\n")
    	}
    
    	// the function being tested
    	testFunc, err := template.New("testFunc").Parse(
    		`//go:noinline
    		func {{.Name}}_{{.Stype}}_ssa(a, b {{.Stype}}) {{.Stype}} {
    	return a {{.SymFirst}} b
    }
    `)
    	if err != nil {
    		panic(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  3. pkg/controller/nodeipam/ipam/range_allocator_test.go

    				NodeCIDRMaskSizes:    []int{24},
    			},
    			expectedAllocatedCIDR: map[int]string{
    				0: "10.10.1.0/24",
    			},
    		},
    	}
    
    	// test function
    	_, tCtx := ktesting.NewTestContext(t)
    	testFunc := func(tc testCase) {
    		fakeNodeInformer := test.FakeNodeInformer(tc.fakeNodeHandler)
    		nodeList, _ := tc.fakeNodeHandler.List(tCtx, metav1.ListOptions{})
    		// Initialize the range allocator.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  4. test/rangegen.go

    					code0 := gen(b, "testFunc"+s, "", "yield2", i, double, func(c int) bool { return c == j || c == k })
    					code1 := gen(b, "testSlice"+s, "_, ", "slice2", i, double, func(c int) bool { return c == j || c == k })
    					if code0 != code1 {
    						panic("bad generator")
    					}
    					tests += "test" + s + "()\n"
    					p(b, testCode, "test"+s, []int{j, k}, "testFunc"+s, "testSlice"+s)
    					flush(false)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 23:35:19 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{"", 0},
    		tests: []testFnc{
    			testRemaining{0, 0},
    			testRead{0, "", io.EOF},
    			testRead{1, "", io.EOF},
    			testWriteTo{nil, 0, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{"", 1},
    		tests: []testFnc{
    			testRemaining{1, 1},
    			testRead{5, "", 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)
  6. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

           {MlirOptimizationPassState::Enabled});
    
      GraphDef original_graph_def;
      graph_->ToGraphDef(&original_graph_def);
    
      EXPECT_EQ(
          function_optimization_pass_.Run(
              "test_func", device_set_, config_proto_, function_options_, &graph_,
              flib_.get(), &control_ret_node_names_, &control_rets_updated_),
          Status(absl::StatusCode::kAborted, "aborted"));
      verifyGraph(original_graph_def);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. src/math/big/nat_test.go

    		}
    	}
    }
    
    func testFunNN(t *testing.T, msg string, f funNN, a argNN) {
    	z := f(nil, a.x, a.y)
    	if z.cmp(a.z) != 0 {
    		t.Errorf("%s%+v\n\tgot z = %v; want %v", msg, a, z, a.z)
    	}
    }
    
    func TestFunNN(t *testing.T) {
    	for _, a := range sumNN {
    		arg := a
    		testFunNN(t, "add", nat.add, arg)
    
    		arg = argNN{a.z, a.y, a.x}
    		testFunNN(t, "add symmetric", nat.add, arg)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. cluster/addons/addon-manager/kube-addons-test.sh

        return 1
      fi
    }
    
    function test_func() {
      local -r name="${1}"
    
      echo_blue "=== TEST ${name}"
      setup
      if ! "${name}"; then
        failures=$((failures+1))
        error "=== FAIL"
      else
        echo_green "=== PASS"
      fi
      teardown
    }
    
    failures=0
    test_func test_create_resource_reconcile
    test_func test_create_resource_ensureexists
    test_func test_create_multiresource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 02:46:18 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithLibraryIntegrationTest.groovy

                    return lib();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_lib.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // ok
        }
    
        @Override
        protected String[] getTasksToCompileComponentUnderTest(String architecture) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithoutComponentIntegrationTest.groovy

                    return test();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // Ok
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top