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

Function TestChatAdvisorConfig_GetDefault

coderd/exp_chats_test.go:12778–12788  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12776}
12777
12778func TestChatAdvisorConfig_GetDefault(t *testing.T) {
12779 t.Parallel()
12780
12781 ctx := testutil.Context(t, testutil.WaitLong)
12782 adminClient := newChatClient(t)
12783 coderdtest.CreateFirstUser(t, adminClient.Client)
12784
12785 resp, err := adminClient.GetChatAdvisorConfig(ctx)
12786 require.NoError(t, err)
12787 require.Equal(t, codersdk.AdvisorConfig{}, resp)
12788}
12789
12790func TestChatAdvisorConfig_Update(t *testing.T) {
12791 t.Parallel()

Callers

nothing calls this directly

Calls 5

ContextFunction · 0.92
CreateFirstUserFunction · 0.92
newChatClientFunction · 0.70
GetChatAdvisorConfigMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected