Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CallerName (0.22 sec)

  1. src/testing/testing.go

    		}
    		parent = parent.parent
    	}
    
    	return raceErrors
    }
    
    // callerName gives the function name (qualified with a package path)
    // for the caller after skip frames (where 0 means the current function).
    func callerName(skip int) string {
    	var pc [1]uintptr
    	n := runtime.Callers(skip+2, pc[:]) // skip + runtime.Callers + callerName
    	if n == 0 {
    		panic("testing: zero callers found")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top