(p *profile.Profile, fname string)
| 796 | } |
| 797 | |
| 798 | func 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 |
no test coverage detected
searching dependent graphs…