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

Function insertInternalAIProvider

coderd/x/chatd/subagent_internal_test.go:220–233  ·  view source on GitHub ↗
(
	t *testing.T,
	db database.Store,
	providerType database.AIProviderType,
	apiKey string,
	enabled bool,
)

Source from the content-addressed store, hash-verified

218}
219
220func insertInternalAIProvider(
221 t *testing.T,
222 db database.Store,
223 providerType database.AIProviderType,
224 apiKey string,
225 enabled bool,
226) database.AIProvider {
227 t.Helper()
228 return dbgen.AIProviderWithOptionalKey(t, db, database.AIProvider{
229 Type: providerType,
230 }, apiKey, func(params *database.InsertAIProviderParams) {
231 params.Enabled = enabled
232 })
233}
234
235func TestCreateChildSubagentChatPropagatesActiveTurnAPIKeyID(t *testing.T) {
236 t.Parallel()

Calls 2

HelperMethod · 0.65

Tested by

no test coverage detected