- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestCaller (0.16 sec)
-
test/inline_caller.go
} // -1 means don't care var expected = []wantFrame{ 0: {"main.h", 36}, 1: {"main.g", 31}, 2: {"main.f", 27}, 3: {"main.testCaller", 42}, 4: {"main.main", 68}, 5: {"runtime.main", -1}, 6: {"runtime.goexit", -1}, } func main() { for i := 0; i <= 6; i++ { frame := testCaller(i) // line 68 fn := runtime.FuncForPC(frame.pc) if expected[i].line >= 0 && frame.line != expected[i].line {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 08 21:54:04 UTC 2019 - 1.4K bytes - Viewed (0) -
src/runtime/symtab_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( "runtime" "strings" "testing" "unsafe" ) func TestCaller(t *testing.T) { procs := runtime.GOMAXPROCS(-1) c := make(chan bool, procs) for p := 0; p < procs; p++ { go func() { for i := 0; i < 1000; i++ { testCallerFoo(t) } c <- true }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 21:46:33 UTC 2022 - 7.5K bytes - Viewed (0)