MCPcopy Create free account
hub / github.com/google/pprof / checkProfileHasFunction

Function checkProfileHasFunction

internal/driver/fetch_test.go:798–805  ·  view source on GitHub ↗
(p *profile.Profile, fname string)

Source from the content-addressed store, hash-verified

796}
797
798func checkProfileHasFunction(p *profile.Profile, fname string) error {
799 for _, f := range p.Function {
800 if strings.Contains(f.Name, fname) {
801 return nil
802 }
803 }
804 return fmt.Errorf("got %s, want function %q", p.String(), fname)
805}
806
807// selfSignedCert generates a self-signed certificate, and returns the
808// generated certificate, and byte arrays containing the certificate and

Callers 2

TestHTTPSInsecureFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…