Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for CallerName (0.08 sec)

  1. src/testing/fuzz.go

    	// instead of the caller.
    	f.mu.Lock()
    	defer f.mu.Unlock()
    	if f.helperPCs == nil {
    		f.helperPCs = make(map[uintptr]struct{})
    	}
    	// repeating code from callerName here to save walking a stack frame
    	var pc [1]uintptr
    	n := runtime.Callers(2, pc[:]) // skip runtime.Callers + Helper
    	if n == 0 {
    		panic("testing: zero callers found")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top