Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCallersAfterRecovery (0.27 sec)

  1. src/runtime/callers_test.go

    	panic(1)
    }
    
    // Test that a defer after a successful recovery looks like it is called directly
    // from the function with the defers.
    func TestCallersAfterRecovery(t *testing.T) {
    	want := []string{"runtime.Callers", "runtime_test.TestCallersAfterRecovery.func1", "runtime_test.TestCallersAfterRecovery"}
    
    	defer func() {
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallersEqual(t, pcs, want)
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top