New constructs a codersdk client connected to an in-memory API instance.
(t testing.TB, options *Options)
| 203 | |
| 204 | // New constructs a codersdk client connected to an in-memory API instance. |
| 205 | func New(t testing.TB, options *Options) *codersdk.Client { |
| 206 | client, _ := newWithCloser(t, options) |
| 207 | return client |
| 208 | } |
| 209 | |
| 210 | // NewWithDatabase constructs a codersdk client connected to an in-memory API instance. |
| 211 | // The database is returned to provide direct data manipulation for tests. |