MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / createTestDatabase

Function createTestDatabase

packages/node-runtime/src/ai/__tests__/chats.test.ts:16–18  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

14}
15
16function createTestDatabase(filename: string): Database.Database {
17 return sqliteNativeBinding ? new Database(filename, { nativeBinding: sqliteNativeBinding }) : new Database(filename)
18}
19
20function createManager(dir: string): AIChatManager {
21 return sqliteNativeBinding ? new AIChatManager(dir, { nativeBinding: sqliteNativeBinding }) : new AIChatManager(dir)

Callers 1

chats.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected