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

Function newChatClientWithDeploymentValues

coderd/exp_chats_test.go:107–116  ·  view source on GitHub ↗
(
	t testing.TB,
	values *codersdk.DeploymentValues,
)

Source from the content-addressed store, hash-verified

105}
106
107func newChatClientWithDeploymentValues(
108 t testing.TB,
109 values *codersdk.DeploymentValues,
110) *codersdk.ExperimentalClient {
111 t.Helper()
112
113 opts := newChatTestOptions(t, values)
114 client := coderdtest.New(t, opts)
115 return codersdk.NewExperimentalClient(client)
116}
117
118func newChatClientWithDatabase(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, database.Store) {
119 t.Helper()

Callers 7

TestListChatModelsFunction · 0.85
TestUserAIProviderKeysFunction · 0.85
TestListChatProvidersFunction · 0.85
TestCreateChatProviderFunction · 0.85
TestUpdateChatProviderFunction · 0.85

Calls 4

NewFunction · 0.92
NewExperimentalClientFunction · 0.92
newChatTestOptionsFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected