(str string, fn func(ctx context.Context, str string) string)
| 161 | } |
| 162 | |
| 163 | func (e *outExpecter) expectMatchContextFunc(str string, fn func(ctx context.Context, str string) string) string { |
| 164 | e.t.Helper() |
| 165 | |
| 166 | timeout, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) |
| 167 | defer cancel() |
| 168 | |
| 169 | return fn(timeout, str) |
| 170 | } |
| 171 | |
| 172 | // TODO(mafredri): Rename this to ExpectMatch when refactoring. |
| 173 | func (e *outExpecter) ExpectMatchContext(ctx context.Context, str string) string { |
no test coverage detected