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

Function newChatClientWithDatabase

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

Source from the content-addressed store, hash-verified

116}
117
118func newChatClientWithDatabase(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, database.Store) {
119 t.Helper()
120
121 opts := newChatTestOptions(t, chatDeploymentValues(t), overrides...)
122 client, db := coderdtest.NewWithDatabase(t, opts)
123 return codersdk.NewExperimentalClient(client), db
124}
125
126func newChatClientWithAPIAndDatabase(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, database.Store, *coderd.API) {
127 t.Helper()

Callers 15

TestPostChatsFunction · 0.85
TestListChatsFunction · 0.85
TestWatchChatsFunction · 0.85
TestListChatModelConfigsFunction · 0.85
TestGetChatFunction · 0.85
TestGetChatUserPromptsFunction · 0.85
TestPatchChatFunction · 0.85
TestArchiveChatFunction · 0.85
TestUnarchiveChatFunction · 0.85
TestChatPinOrderFunction · 0.85
TestPostChatMessagesFunction · 0.85

Calls 5

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

Tested by

no test coverage detected