MCPcopy Index your code
hub / github.com/coder/coder / logClose

Method logClose

testutil/expecter/expecter.go:142–146  ·  view source on GitHub ↗
(name string, c io.Closer)

Source from the content-addressed store, hash-verified

140}
141
142func (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
148func (e *Expecter) ExpectMatch(ctx context.Context, str string) string {
149 return e.expectMatcherFunc(ctx, str, strings.Contains)

Callers 1

CloseMethod · 0.95

Calls 2

LogfMethod · 0.95
CloseMethod · 0.65

Tested by

no test coverage detected