MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / getTestDatabaseClients

Function getTestDatabaseClients

src/database/testing.ts:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8};
9
10function getTestDatabaseClients(): Set<TestDatabaseClient> {
11 const testGlobal = globalThis as TestDatabaseGlobal;
12 return (testGlobal[TEST_DATABASE_CLIENTS_KEY] ??= new Set<TestDatabaseClient>());
13}
14
15function enqueueTestDatabaseOperation<T>(operation: () => Promise<T> | T): Promise<T> {
16 const testGlobal = globalThis as TestDatabaseGlobal;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…