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

Function insertChat

coderd/x/chatd/chatdebug/service_test.go:1107–1123  ·  view source on GitHub ↗
(
	t *testing.T,
	db database.Store,
	orgID uuid.UUID,
	ownerID uuid.UUID,
	modelID uuid.UUID,
)

Source from the content-addressed store, hash-verified

1105}
1106
1107func insertChat(
1108 t *testing.T,
1109 db database.Store,
1110 orgID uuid.UUID,
1111 ownerID uuid.UUID,
1112 modelID uuid.UUID,
1113) database.Chat {
1114 t.Helper()
1115
1116 chat := dbgen.Chat(t, db, database.Chat{
1117 OrganizationID: orgID,
1118 OwnerID: ownerID,
1119 LastModelConfigID: modelID,
1120 Title: "chat-" + uuid.NewString(),
1121 })
1122 return chat
1123}
1124
1125func insertMessage(
1126 t *testing.T,

Callers 5

TestGetChatsByWorkspaceFunction · 0.85
TestChatParamFunction · 0.85
TestService_CreateRunFunction · 0.85
seedChatFunction · 0.85

Calls 2

ChatFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected