(query string)
| 80 | } |
| 81 | |
| 82 | func (c *testClient) TestQuery(query string) string { |
| 83 | r, err := c.Connection.Query(c.Context(), srcfiles.Plain(query)) |
| 84 | require.NoError(c, err) |
| 85 | defer r.Body.Close() |
| 86 | zr := bsupio.NewReader(super.NewContext(), r.Body) |
| 87 | defer zr.Close() |
| 88 | var buf bytes.Buffer |
| 89 | zw := supio.NewWriter(sio.NopCloser(&buf), supio.WriterOpts{}) |
| 90 | require.NoError(c, sio.Copy(zw, zr)) |
| 91 | return buf.String() |
| 92 | } |
| 93 | |
| 94 | func (c *testClient) TestLoad(poolID ksuid.KSUID, branchName string, r io.Reader) ksuid.KSUID { |
| 95 | commit, err := c.Connection.Load(c.Context(), poolID, branchName, "", r, api.CommitMessage{}) |
no test coverage detected