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

Function newChatClientWithAPI

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

Source from the content-addressed store, hash-verified

97}
98
99func newChatClientWithAPI(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, *coderd.API) {
100 t.Helper()
101
102 opts := newChatTestOptions(t, chatDeploymentValues(t), overrides...)
103 client, _, api := coderdtest.NewWithAPI(t, opts)
104 return codersdk.NewExperimentalClient(client), api
105}
106
107func newChatClientWithDeploymentValues(
108 t testing.TB,

Callers 1

TestPatchChatFunction · 0.85

Calls 5

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

Tested by

no test coverage detected