Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increase coverage for net/blocklist #36405

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

Lxxyx
Copy link
Member

@Lxxyx Lxxyx commented Dec 6, 2020

  1. test new BlockList with invalid args
    Refs: https://coverage.nodejs.org/coverage-f7dd330ba0e7bfa9/lib/internal/blocklist.js.html#L34

  2. test addRange with invalid start and end
    https://coverage.nodejs.org/coverage-f7dd330ba0e7bfa9/lib/internal/blocklist.js.html#L78

  3. test blocklist addSubnet with invalid args
    Refs: https://coverage.nodejs.org/coverage-f7dd330ba0e7bfa9/lib/internal/blocklist.js.html#L81

  4. test blocklist check with invalid args
    Refs: https://coverage.nodejs.org/coverage-f7dd330ba0e7bfa9/lib/internal/blocklist.js.html#L107

  5. test util.inspect case
    Refs: https://coverage.nodejs.org/coverage-f7dd330ba0e7bfa9/lib/internal/blocklist.js.html#L39

Before:
image

Now:
image

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 6, 2020
@Lxxyx Lxxyx force-pushed the test-blocklist-coverage branch from f7aa99e to 6e954ae Compare December 6, 2020 08:41
@Trott Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 9, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 9, 2020
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Trott Trott force-pushed the test-blocklist-coverage branch from 6e954ae to ed3a4c8 Compare December 14, 2020 14:04
@Trott Trott merged commit ed3a4c8 into nodejs:master Dec 14, 2020
@Trott
Copy link
Member

Trott commented Dec 14, 2020

Landed in ed3a4c8

@Lxxyx Lxxyx deleted the test-blocklist-coverage branch December 15, 2020 05:52
targos pushed a commit that referenced this pull request Aug 8, 2021
foxxyz pushed a commit to foxxyz/node that referenced this pull request Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants