Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MainGoroutineID (0.14 sec)

  1. src/runtime/testdata/testprog/deadlock.go

    	register("RecursivePanic3", RecursivePanic3)
    	register("RecursivePanic4", RecursivePanic4)
    	register("RecursivePanic5", RecursivePanic5)
    	register("GoexitExit", GoexitExit)
    	register("GoNil", GoNil)
    	register("MainGoroutineID", MainGoroutineID)
    	register("Breakpoint", Breakpoint)
    	register("GoexitInPanic", GoexitInPanic)
    	register("PanicAfterGoexit", PanicAfterGoexit)
    	register("RecoveredPanicAfterGoexit", RecoveredPanicAfterGoexit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	if !strings.Contains(output, want) {
    		t.Fatalf("output:\n%s\n\nwant output containing: %s", output, want)
    	}
    }
    
    func TestMainGoroutineID(t *testing.T) {
    	output := runTestProg(t, "testprog", "MainGoroutineID")
    	want := "panic: test\n\ngoroutine 1 [running]:\n"
    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    }
    
    func TestNoHelperGoroutines(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top