TODO(mafredri): Rename this to ExpectMatch when refactoring.
(ctx context.Context, str string)
| 171 | |
| 172 | // TODO(mafredri): Rename this to ExpectMatch when refactoring. |
| 173 | func (e *outExpecter) ExpectMatchContext(ctx context.Context, str string) string { |
| 174 | return e.expectMatcherFunc(ctx, str, strings.Contains) |
| 175 | } |
| 176 | |
| 177 | func (e *outExpecter) ExpectRegexMatchContext(ctx context.Context, str string) string { |
| 178 | return e.expectMatcherFunc(ctx, str, func(src, pattern string) bool { |