- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for Testfunc (0.19 sec)
The limit of a search time was exceeded. The partial result might be displayed.
-
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) -
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) -
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) -
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) -
test/range4.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 16:00:53 UTC 2024 - 5.1K bytes - Viewed (0) -
pkg/scheduler/internal/queue/testing.go
func NewTestQueue(ctx context.Context, lessFn framework.LessFunc, opts ...Option) *PriorityQueue { return NewTestQueueWithObjects(ctx, lessFn, nil, opts...) } // NewTestQueueWithObjects creates a priority queue with an informer factory // populated with the provided objects. func NewTestQueueWithObjects( ctx context.Context, lessFn framework.LessFunc, objs []runtime.Object, opts ...Option, ) *PriorityQueue {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 10 00:53:58 UTC 2022 - 1.7K bytes - Viewed (0) -
pkg/scheduler/internal/heap/heap.go
// in "items". queue []string // keyFunc is used to make the key used for queued item insertion and retrieval, and // should be deterministic. keyFunc KeyFunc // lessFunc is used to compare two objects in the heap. lessFunc lessFunc } var ( _ = heap.Interface(&data{}) // heapData is a standard heap ) // Less compares two objects and returns true if the first one should go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 29 18:37:35 UTC 2022 - 6.7K bytes - Viewed (0) -
src/internal/coverage/test/counter_test.go
continue } var fp decodecounter.FuncPayload if ok, err := cdr.NextFunc(&fp); err != nil { t.Fatalf("reading func %d: %v", i, err) } else if !ok { t.Fatalf("reading func %d: bad return", i) } got := fmt.Sprintf("%+v", fp) want := fmt.Sprintf("%+v", funcs[i]) if got != want { t.Errorf("cdr.NextFunc iter %d\ngot %+v\nwant %+v", i, got, want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 26 12:44:34 UTC 2023 - 6.2K bytes - Viewed (0)