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

Function seedModelConfig

coderd/x/chatd/chattool/startworkspace_test.go:947–957  ·  view source on GitHub ↗

seedModelConfig inserts a provider and model config for testing.

(
	t *testing.T,
	db database.Store,
)

Source from the content-addressed store, hash-verified

945
946// seedModelConfig inserts a provider and model config for testing.
947func seedModelConfig(
948 t *testing.T,
949 db database.Store,
950) database.ChatModelConfig {
951 t.Helper()
952
953 dbgen.ChatProvider(t, db, database.ChatProvider{})
954 return dbgen.ChatModelConfig(t, db, database.ChatModelConfig{
955 IsDefault: true,
956 })
957}
958
959// jobInterceptStore wraps a database.Store and signals a
960// channel after the first GetProvisionerJobByID read completes.

Callers 3

TestStopWorkspaceFunction · 0.85
TestStartWorkspaceFunction · 0.85

Calls 3

ChatProviderFunction · 0.92
ChatModelConfigFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected