Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Testfunc (0.24 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. 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. 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)
  6. src/expvar/expvar_test.go

    		i := int(atomic.AddInt32(&n, 1)-1) % len(procKeys)
    		keys := procKeys[i]
    
    		for pb.Next() {
    			for _, k := range keys {
    				m.Add(k, 1)
    			}
    		}
    	})
    }
    
    func TestFunc(t *testing.T) {
    	RemoveAll()
    	var x any = []string{"a", "b"}
    	f := Func(func() any { return x })
    	if s, exp := f.String(), `["a","b"]`; s != exp {
    		t.Errorf(`f.String() = %q, want %q`, s, exp)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestDB.h

    CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc);
    /**<
     *  This function creates a new test having the specified name 
     *  and function, and adds it to the specified suite.  The new test 
     *  is active and able to be executed during a test run.  At present, 
     *  there is no mechanism for creating a test case independent of a 
     *  suite.  Neither pSuite, strName, nor pTestFunc may be NULL.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top