Repository navigation
Possible error with coverage report #12136
Description
Activity
@lucamaraschi That test uses
fs.statwhich usesmakeStatsCallback, notmakeCallbackfor special callback handling… I think the line is really not covered?- addedfsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.questionIssues asking questions about Node.js.Issues asking questions about Node.js.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Mar 30, 2017 @addaleax you are indeed right!Gonna open a PR on the test to extend the case also to
makeCallback.Reacted by James M Snell and Gibson Fahnestock@lucamaraschi in that case I'll reopen this, and you can close it in your PR!
In case you didn't know, you can add:
Fixes: https://github.com/nodejs/node/issues/12136to your commit description to auto-close this when your PR lands.
@gibfahn I'm not sure that adding coverage for that line of code is related to this issue. This issue was opened for a possible bug in the coverage reporting, but that turned out not to be the case.
@cjihrig the way I see it, the issue was raised to ask why that line wasn't being reported as covered. The answer is because the test doesn't cover it, so a PR fixing the test would resolve the issue.
- added 3 commits that reference this issue
on Jun 19, 2017 - added a commit that references this issue
on Jul 11, 2017 - added a commit that references this issue
on May 5, 2024 - added a commit that references this issue
on Jul 27, 2026
In the test coverage report line 131 is marked as not covered but a test for this exception/line already exists (https://github.com/nodejs/node/blob/master/test/parallel/test-fs-make-callback.js).
cc: @addaleax && @nodejs/testing