Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCallerLine (0.1 sec)

  1. src/runtime/callers_test.go

    	testNormalEndlineno(t)
    	testGenericEndlineno[int](t)
    }
    
    func testNormalEndlineno(t *testing.T) {
    	defer testCallerLine(t, callerLine(t, 0)+1)
    }
    
    func testGenericEndlineno[_ any](t *testing.T) {
    	defer testCallerLine(t, callerLine(t, 0)+1)
    }
    
    func testCallerLine(t *testing.T, want int) {
    	if have := callerLine(t, 1); have != want {
    		t.Errorf("callerLine(1) returned %d, but want %d\n", have, 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