(name string, c io.Closer)
| 140 | } |
| 141 | |
| 142 | func (e *Expecter) logClose(name string, c io.Closer) { |
| 143 | e.Logf("closing %s", name) |
| 144 | err := c.Close() |
| 145 | e.Logf("closed %s: %v", name, err) |
| 146 | } |
| 147 | |
| 148 | func (e *Expecter) ExpectMatch(ctx context.Context, str string) string { |
| 149 | return e.expectMatcherFunc(ctx, str, strings.Contains) |