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

Function newAdvisorTestServer

coderd/x/chatd/advisor_internal_test.go:91–102  ·  view source on GitHub ↗
(
	ctx context.Context,
	t *testing.T,
	store database.Store,
)

Source from the content-addressed store, hash-verified

89}
90
91func newAdvisorTestServer(
92 ctx context.Context,
93 t *testing.T,
94 store database.Store,
95) *Server {
96 t.Helper()
97 clock := quartz.NewMock(t)
98 return &Server{
99 db: store,
100 configCache: newChatConfigCache(ctx, store, clock),
101 }
102}
103
104func (p *Server) resolveAdvisorModelOverrideOrFallback(
105 ctx context.Context,

Calls 2

newChatConfigCacheFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected