MCPcopy Create free account
hub / github.com/coder/coder / newRunConfig

Function newRunConfig

scaletest/chat/run_internal_test.go:257–268  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

255}
256
257func newRunConfig(t *testing.T) Config {
258 t.Helper()
259 reg := prometheus.NewRegistry()
260 return Config{
261 OrganizationID: uuid.MustParse("22222222-2222-2222-2222-222222222222"),
262 WorkspaceID: uuid.MustParse("11111111-1111-1111-1111-111111111111"),
263 ModelConfigID: uuid.MustParse("33333333-3333-3333-3333-333333333333"),
264 Prompt: "Reply with one short sentence.",
265 Turns: 1,
266 Metrics: NewMetrics(reg),
267 }
268}
269
270type fakeChatClient struct {
271 createChatFunc func(context.Context, codersdk.CreateChatRequest) (codersdk.Chat, error)

Callers 1

Calls 2

NewMetricsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected