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

Function findCoverageFileForPid

test/parallel/test-runner-coverage.js:15–22  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

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

Callers 1

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…