Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Testfunc (0.22 sec)

  1. 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)
  2. src/cmd/go/internal/load/test.go

    func formatTestmain(t *testFuncs) ([]byte, error) {
    	var buf bytes.Buffer
    	tmpl := testmainTmpl
    	if cfg.Experiment.CoverageRedesign {
    		tmpl = testmainTmplNewCoverage
    	}
    	if err := tmpl.Execute(&buf, t); err != nil {
    		return nil, err
    	}
    	return buf.Bytes(), nil
    }
    
    type testFuncs struct {
    	Tests       []testFunc
    	Benchmarks  []testFunc
    	FuzzTargets []testFunc
    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/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. pkg/kubelet/cm/devicemanager/manager_test.go

    	}
    	testCases := []struct {
    		description string
    		count       int
    		devices     []pluginapi.Device
    		testfunc    func(manager *wrappedManagerImpl)
    	}{
    		{
    			description: "GetTopologyHints data race when update device",
    			count:       10,
    			devices:     devs,
    			testfunc: func(manager *wrappedManagerImpl) {
    				manager.GetTopologyHints(testPod, &testPod.Spec.Containers[0])
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    'Go test' recompiles each package along with any files with names matching
    the file pattern "*_test.go".
    These additional files can contain test functions, benchmark functions, fuzz
    tests and example functions. See 'go help testfunc' for more.
    Each listed package causes the execution of a separate test binary.
    Files whose names begin with "_" (including "_test.go") or "." are ignored.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    	}
    }
    
    // tryTimeouts runs testFunc with increasing timeouts. Test passes on first success,
    // and fails if all timeouts fail.
    func tryTimeouts(t *testing.T, testFunc func(timeout time.Duration) error) {
    	tries := []time.Duration{250 * time.Millisecond, 500 * time.Millisecond, 1 * time.Second}
    	for i, timeout := range tries {
    		err := testFunc(timeout)
    		if err == nil {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. src/reflect/all_test.go

    // implicit padding between arguments.
    func dummy(b byte, c int, d byte, e two, f byte, g float32, h byte) (i byte, j int, k byte, l two, m byte, n float32, o byte) {
    	return b, c, d, e, f, g, h
    }
    
    func TestFunc(t *testing.T) {
    	ret := ValueOf(dummy).Call([]Value{
    		ValueOf(byte(10)),
    		ValueOf(20),
    		ValueOf(byte(30)),
    		ValueOf(two{40, 50}),
    		ValueOf(byte(60)),
    		ValueOf(float32(70)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  8. src/cmd/go/alldocs.go

    //	module-auth     module authentication using go.sum
    //	packages        package lists and patterns
    //	private         configuration for downloading non-public code
    //	testflag        testing flags
    //	testfunc        testing functions
    //	vcs             controlling version control with GOVCS
    //
    // Use "go help <topic>" for more information about that topic.
    //
    // # Start a bug report
    //
    // Usage:
    //
    //	go bug
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. 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)
  10. pkg/config/schema/kubeclient/common.go

    	return c.Informers().InformerFor(g, opts, func() cache.SharedIndexInformer {
    		inf := cache.NewSharedIndexInformerWithOptions(
    			&cache.ListWatch{
    				ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top