MCPcopy Index your code
hub / github.com/nodejs/node / findCoverageFileForPid

Function findCoverageFileForPid

test/parallel/test-runner-coverage-thresholds.js:13–20  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

11tmpdir.refresh();
12
13function findCoverageFileForPid(pid) {
14 const pattern = `^coverage\\-${pid}\\-(\\d{13})\\-(\\d+)\\.json$`;
15 const regex = new RegExp(pattern);
16
17 return readdirSync(tmpdir.path).find((file) => {
18 return regex.test(file);
19 });
20}
21
22function getTapCoverageFixtureReport() {
23

Calls 3

findMethod · 0.65
readdirSyncFunction · 0.50
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…