Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for Testfunc (0.19 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. tensorflow/compiler/jit/device_compilation_profiler_test.cc

    TEST(DeviceCompilationProfilerTest, RegisterExecution) {
      DeviceCompilationProfiler* profiler = new DeviceCompilationProfiler();
      core::ScopedUnref profiler_ref(profiler);
    
      NameAttrList function;
      function.set_name("TestFunc");
    
      for (int i = 0; i < 5; ++i) {
        profiler->RegisterExecution(function);
      }
      TF_ASSERT_OK_AND_ASSIGN(auto stats, profiler->GetCompileStats(function));
      EXPECT_EQ(stats.execution_count, 5);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 21:06:33 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  3. src/cmd/nm/nm_test.go

    	testGoLib(t, false)
    }
    
    const testexec = `
    package main
    
    import "fmt"
    {{if .}}import "C"
    {{end}}
    
    func main() {
    	testfunc()
    }
    
    var testdata uint32
    
    func testfunc() {
    	fmt.Printf("main=%p\n", main)
    	fmt.Printf("testfunc=%p\n", testfunc)
    	fmt.Printf("testdata=%p\n", &testdata)
    }
    `
    
    const testlib = `
    package mylib
    
    {{if .}}
    // int cgodata = 5;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/html/template/multi_test.go

    	{"variable declared by template", `{{template "nested" $x:=.SI}},{{index $x 1}}`, "[3 4 5],4", tVal, true},
    
    	// User-defined function: test argument evaluator.
    	{"testFunc literal", `{{oneArg "joe"}}`, "oneArg=joe", tVal, true},
    	{"testFunc .", `{{oneArg .}}`, "oneArg=joe", "joe", true},
    }
    
    // These strings are also in testdata/*.
    const multiText1 = `
    	{{define "x"}}TEXT{{end}}
    	{{define "dotV"}}{{.V}}{{end}}
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. src/text/template/multi_test.go

    	{"variable declared by template", `{{template "nested" $x:=.SI}},{{index $x 1}}`, "[3 4 5],4", tVal, true},
    
    	// User-defined function: test argument evaluator.
    	{"testFunc literal", `{{oneArg "joe"}}`, "oneArg=joe", tVal, true},
    	{"testFunc .", `{{oneArg .}}`, "oneArg=joe", "joe", true},
    }
    
    // These strings are also in testdata/*.
    const multiText1 = `
    	{{define "x"}}TEXT{{end}}
    	{{define "dotV"}}{{.V}}{{end}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  10. 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)
Back to top