(string, ...any)
| 114 | |
| 115 | // newBufferedConn builds a clientConn that writes to an in-memory buffer, for |
| 116 | // asserting the exact backend messages a simple query produces. The returned |
| 117 | // *bytes.Buffer holds the flushed output after handleQuery. |
| 118 | func newBufferedConn(exec QueryExecutor) (*clientConn, *bytes.Buffer) { |
| 119 | clientSide, serverSide := net.Pipe() |
| 120 | // The pipe halves are only needed so bufio has something to wrap; the test |
| 121 | // reads the flushed buffer, not the pipe. Closed by the caller via t.Cleanup. |
nothing calls this directly
no outgoing calls
no test coverage detected