Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for testfunc0 (0.36 sec)

  1. test/range4.go

    	}
    	if ncalls != 3 {
    		println("wrong number of calls:", ncalls, "!= 3")
    		panic("fail")
    	}
    }
    
    func main() {
    	testfunc0()
    	testfunc1()
    	testfunc2()
    	testfunc3()
    	testfunc4()
    	testfunc5()
    	testfunc6()
    	testfunc7()
    	testfunc8()
    	testfunc9()
    	testcalls()
    	testcalls1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/test.go

    type coverInfo struct {
    	Package *Package
    	Vars    map[string]*CoverVar
    }
    
    // loadTestFuncs returns the testFuncs describing the tests that will be run.
    // The returned testFuncs is always non-nil, even if an error occurred while
    // processing test files.
    func loadTestFuncs(ptest *Package) (*testFuncs, error) {
    	t := &testFuncs{
    		Package: ptest,
    	}
    	var err error
    	for _, file := range ptest.TestGoFiles {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. pkg/volume/util/resize_util_test.go

    		expectedPVC *v1.PersistentVolumeClaim
    		testFunc    func(*v1.PersistentVolumeClaim, clientset.Interface, resource.Quantity) (*v1.PersistentVolumeClaim, error)
    	}{
    		{
    			name:        "mark fs resize, with no other conditions",
    			pvc:         basePVC.get(),
    			expectedPVC: basePVC.withStorageResourceStatus(v1.PersistentVolumeClaimNodeResizePending).get(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

          }
        }
      )mlir";
    
      OwningOpRef<ModuleOp> module_op_ref = ParseModuleOpString(kModuleCode);
      const auto test_func =
          module_op_ref->lookupSymbol<func::FuncOp>("test_fold_constant");
      ASSERT_THAT(test_func, NotNull());
    
      Operation* mul_op = FindOperationOfType<TF::MulOp>(test_func);
      SmallVector<Value> results = ConstantFoldOpIfPossible(mul_op);
      EXPECT_THAT(results, SizeIs(1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. src/archive/tar/writer_test.go

    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{0, ""},
    		tests: []testFnc{
    			testRemaining{0, 0},
    			testWrite{"", 0, nil},
    			testWrite{"a", 0, ErrWriteTooLong},
    			testReadFrom{fileOps{""}, 0, nil},
    			testReadFrom{fileOps{"a"}, 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{1, "a"},
    		tests: []testFnc{
    			testRemaining{1, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/controller/daemon/util/daemonset_util_test.go

    				featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, fg, f)
    				t.Run(fmt.Sprintf("%v (%t)", fg, f), tf)
    			}()
    		}
    	}
    }
    
    func TestGetTargetNodeName(t *testing.T) {
    	testFun := func(t *testing.T) {
    		tests := []struct {
    			pod         *v1.Pod
    			nodeName    string
    			expectedErr bool
    		}{
    			{
    				pod: &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "pod1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/math/big/int_test.go

    	SubZZ := func(z, x, y *Int) *Int { return z.Sub(x, y) }
    	for _, a := range sumZZ {
    		arg := a
    		testFunZZ(t, "AddZZ", AddZZ, arg)
    
    		arg = argZZ{a.z, a.y, a.x}
    		testFunZZ(t, "AddZZ symmetric", AddZZ, arg)
    
    		arg = argZZ{a.x, a.z, a.y}
    		testFunZZ(t, "SubZZ", SubZZ, arg)
    
    		arg = argZZ{a.y, a.z, a.x}
    		testFunZZ(t, "SubZZ symmetric", SubZZ, arg)
    	}
    }
    
    func TestProdZZ(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top