MCPcopy Create free account
hub / github.com/promptfoo/promptfoo / csvRowsToTestCases

Function csvRowsToTestCases

src/util/testCaseReader.ts:239–245  ·  view source on GitHub ↗
(rows: CsvRow[])

Source from the content-addressed store, hash-verified

237}
238
239function csvRowsToTestCases(rows: CsvRow[]): TestCase[] {
240 return rows.map((row, idx) => {
241 const test = testCaseFromCsvRow(row);
242 test.description ||= `Row #${idx + 1}`;
243 return test;
244 });
245}
246
247function getStandaloneTestsFileMetadata(
248 varsPath: string,

Callers 3

readStandaloneTestsFileFunction · 0.85

Calls 1

testCaseFromCsvRowFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…