镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Possible error with coverage report #12136

Description

@lucamaraschi
  • Version: master
  • Platform: all
  • Subsystem: test, fs

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

Activity

  1. addaleax commented on Mar 30, 2017

    @addaleax
    Member

    @lucamaraschi That test uses fs.stat which uses makeStatsCallback, not makeCallback for special callback handling… I think the line is really not covered?

  2. added
    fsIssues and PRs related to file-system APIs and the fs module.
    questionIssues asking questions about Node.js.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Mar 30, 2017
  3. lucamaraschi commented on Mar 30, 2017

    @lucamaraschi
    ContributorAuthor

    @addaleax you are indeed right!Gonna open a PR on the test to extend the case also to makeCallback.

  4. gibfahn commented on Mar 30, 2017

    @gibfahn
    Member

    @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/12136
    

    to your commit description to auto-close this when your PR lands.

  5. cjihrig commented on Mar 30, 2017

    @cjihrig
    Contributor

    @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.

  6. gibfahn commented on Mar 30, 2017

    @gibfahn
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.questionIssues asking questions about Node.js.testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions