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

Function newChatClientWithAPIAndDatabase

coderd/exp_chats_test.go:126–132  ·  view source on GitHub ↗
(t testing.TB, overrides ...func(*coderdtest.Options))

Source from the content-addressed store, hash-verified

124}
125
126func newChatClientWithAPIAndDatabase(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, database.Store, *coderd.API) {
127 t.Helper()
128
129 opts := newChatTestOptions(t, chatDeploymentValues(t), overrides...)
130 client, _, api := coderdtest.NewWithAPI(t, opts)
131 return codersdk.NewExperimentalClient(client), api.Database, api
132}
133
134// findUserMessage returns the first user-role message from a slice of chat
135// messages, failing the test if none is found.

Calls 5

NewWithAPIFunction · 0.92
NewExperimentalClientFunction · 0.92
newChatTestOptionsFunction · 0.85
chatDeploymentValuesFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected