MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / databaseWrite.test.ts

File databaseWrite.test.ts

test/util/databaseWrite.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
2import { getDb } from '../../src/database/index';
3import { updateSignalFile } from '../../src/database/signal';
4import { datasetsTable, evalsTable, promptsTable, tagsTable } from '../../src/database/tables';

Callers

nothing calls this directly

Calls 11

runDbMigrationsFunction · 0.90
getDbFunction · 0.90
writeResultsToDatabaseFunction · 0.90
createEvaluateSummaryV2Function · 0.90
getStandaloneEvalsFunction · 0.90
getCachedStandaloneEvalsFunction · 0.90
clearStandaloneEvalCacheFunction · 0.85
itFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected