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

dns.promises test coverage is poor #22471

Description

@ChALkeR

Ref: #20435 (comment)

Experimental dns/promises API is present in the current master without proper test coverage.

According to the coverage report, the following functions are not tested at all:

  • onlookup
  • onlookupall
  • onlookupservice
  • createLookupServicePromise

While inspecting the experimental fs.promises, there were also some implementation bugs found that could have been caught by code coverage, see e.g. #20407. The dns.promises is much smaller in lines of code, but it is still possible that it contains bugs that could be noticed by extending coverage.

Activity

  1. added
    dnsIssues and PRs related to the dns subsystem.
    promisesIssues and PRs related to ECMAScript promises.
    experimentalIssues and PRs related to experimental features.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Aug 23, 2018
  2. ChALkeR commented on Aug 23, 2018

    @ChALkeR
    MemberAuthor

    #21559 should partially (?) fix this, I presume.

  3. added
    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
    on Aug 23, 2018
  4. SirR4T commented on Aug 24, 2018

    @SirR4T

    Willing to work towards this, with some mentoring/help. For example, would a common.dnsTest() be helpful here, similar to common.fsTest() from #20439?

  5. sagitsofan commented on Sep 10, 2018

    @sagitsofan
    Contributor

    @ChALkeR I will be happy to contribute in this issue.
    Is there is an existing test file or should i create a new one (and if so - in which libary under "test"?)

  6. Trott commented on Sep 11, 2018

    @Trott
    Member

    It's considerably less poor now that we run internet tests during coverage report generation. Right now, it's at 64 of 67 branches. Prior to that, it was 40 of 67.

    I'd welcome someone getting those last 3 branches covered, but I think this can nonetheless be closed at this time.

  7. removed
    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
    on Sep 18, 2018
  8. Trott commented on Sep 18, 2018

    @Trott
    Member

    I'm going to close this. Feel free to re-open if you think that's not warranted at this time, @ChALkeR.

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

    dnsIssues and PRs related to the dns subsystem.experimentalIssues and PRs related to experimental features.promisesIssues and PRs related to ECMAScript promises.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