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

Function New

enterprise/coderd/coderdenttest/coderdenttest.go:82–85  ·  view source on GitHub ↗

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

(t *testing.T, options *Options)

Source from the content-addressed store, hash-verified

80
81// New constructs a codersdk client connected to an in-memory Enterprise API instance.
82func New(t *testing.T, options *Options) (*codersdk.Client, codersdk.CreateFirstUserResponse) {
83 client, _, _, user := NewWithAPI(t, options)
84 return client, user
85}
86
87func NewWithDatabase(t *testing.T, options *Options) (*codersdk.Client, database.Store, codersdk.CreateFirstUserResponse) {
88 client, _, api, user := NewWithAPI(t, options)

Calls 1

NewWithAPIFunction · 0.70