- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 58 for test_func (0.2 sec)
-
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) -
src/cmd/go/testdata/script/test_fuzz.txt
Roland Shoemaker <******@****.***> 1678919846 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 10.2K bytes - Viewed (0) -
test/fixedbugs/issue15329.go
// Invocation via interface. check(unsafe.Pointer(testInter(1).Pointer()), unsafe.Pointer(testInter(2).Pointer())) // Invocation via method value. check(unsafe.Pointer(testFunc(1)()), unsafe.Pointer(testFunc(2)())) } func check(p, q unsafe.Pointer) { a, b := *(*int)(p), *(*int)(q) if a != 1 || b != 2 { fmt.Printf("got %v, %v; expected 1, 2\n", a, b) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 18 14:01:22 UTC 2016 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/closure_test.go
a := 0 b := func() { switch { } a++ } b() b() return a } func testCFunc(t *testing.T) { if want, got := 2, testCFunc_ssa(); got != want { t.Errorf("expected %d, got %d", want, got) } } // TestClosure tests closure related behavior. func TestClosure(t *testing.T) { testCFunc(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 572 bytes - Viewed (0) -
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) -
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) -
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) -
test/fixedbugs/bug447.go
ftype := fmt.Sprintf("float%d", fWidth) seg := strings.Replace(testSegment, "$F", ftype, -1) seg = strings.Replace(seg, "$I", itype, -1) segs.WriteString(seg) } body := strings.Replace(testFunc, "$I", itype, -1) if typ[0] == 'u' { body = strings.Replace(body, "$TEST", " || i < 0", 1) } else { body = strings.Replace(body, "$TEST", "", 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc
} func::FuncOp func = module_for_func->lookupSymbol<func::FuncOp>("host_func"); if (!func) return op.emitError() << "serialized module in attribute 'host_mlir_module' does not " "contain 'host_func' function."; if (op->getNumOperands() != func.getFunctionType().getNumInputs()) return op.emitError() << "'host_func' has " << func.getFunctionType().getNumInputs()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 20:05:58 UTC 2023 - 7.6K bytes - Viewed (0)