(ctx context.Context, str string)
| 175 | } |
| 176 | |
| 177 | func (e *outExpecter) ExpectRegexMatchContext(ctx context.Context, str string) string { |
| 178 | return e.expectMatcherFunc(ctx, str, func(src, pattern string) bool { |
| 179 | return regexp.MustCompile(pattern).MatchString(src) |
| 180 | }) |
| 181 | } |
| 182 | |
| 183 | func (e *outExpecter) expectMatcherFunc(ctx context.Context, str string, fn func(src, pattern string) bool) string { |
| 184 | e.t.Helper() |