Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for helperNames (0.09 sec)

  1. src/testing/testing.go

    			}
    			return prevFrame
    		}
    		// If more helper PCs have been added since we last did the conversion
    		if c.helperNames == nil {
    			c.helperNames = make(map[string]struct{})
    			for pc := range c.helperPCs {
    				c.helperNames[pcToName(pc)] = struct{}{}
    			}
    		}
    		if _, ok := c.helperNames[frame.Function]; !ok {
    			// Found a frame that wasn't inside a helper function.
    			return frame
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  2. src/testing/fuzz.go

    	n := runtime.Callers(2, pc[:]) // skip runtime.Callers + Helper
    	if n == 0 {
    		panic("testing: zero callers found")
    	}
    	if _, found := f.helperPCs[pc[0]]; !found {
    		f.helperPCs[pc[0]] = struct{}{}
    		f.helperNames = nil // map will be recreated next time it is needed
    	}
    }
    
    // Fail marks the function as having failed but continues execution.
    func (f *F) Fail() {
    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