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

Function New

coderd/coderdtest/coderdtest.go:205–208  ·  view source on GitHub ↗

New constructs a codersdk client connected to an in-memory API instance.

(t testing.TB, options *Options)

Source from the content-addressed store, hash-verified

203
204// New constructs a codersdk client connected to an in-memory API instance.
205func 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.

Calls 1

newWithCloserFunction · 0.85