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

Function NewWithDatabase

enterprise/coderd/coderdenttest/coderdenttest.go:87–90  ·  view source on GitHub ↗
(t *testing.T, options *Options)

Source from the content-addressed store, hash-verified

85}
86
87func NewWithDatabase(t *testing.T, options *Options) (*codersdk.Client, database.Store, codersdk.CreateFirstUserResponse) {
88 client, _, api, user := NewWithAPI(t, options)
89 return client, api.Database, user
90}
91
92func NewWithAPI(t *testing.T, options *Options) (
93 *codersdk.Client, io.Closer, *coderd.API, codersdk.CreateFirstUserResponse,

Calls 1

NewWithAPIFunction · 0.70

Tested by 15

TestCreateUserWorkspaceFunction · 0.74
TestWorkspaceAutobuildFunction · 0.74
TestPrebuildActivityBumpFunction · 0.74
TestWorkspacesFilteringFunction · 0.74
TestResolveAutostartFunction · 0.74
TestDeleteWorkspaceACLFunction · 0.74
TestWorkspacesSharedWithFunction · 0.74