FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: improve crypto coverage by toiroakr · Pull Request #11279 · nodejs/node · GitHub

/ node Public

test: improve crypto coverage - #11279

Closed
toiroakr wants to merge 1 commit into
nodejs:masterfrom
toiroakr:test-improve-crypto-coverage
Closed

test: improve crypto coverage#11279
toiroakr wants to merge 1 commit into
nodejs:masterfrom
toiroakr:test-improve-crypto-coverage

Conversation

Copy link
Copy Markdown

This PR improves test coverage on crypto dh functions.
Just add 2 exceptions check.
Please review.

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

N/A

nodejs-github-bot added the test Issues and PRs related to the tests. label Feb 10, 2017
hiroppy added the crypto Issues and PRs related to the crypto subsystem. label Feb 10, 2017

Trott commented Feb 10, 2017

Copy link
Copy Markdown
Member

If possible, it would be great if the regular expressions could cover the entire error message. For example, instead of /Bad format: 10/, use /^TypeError: Bad format: 10$/.

Trott commented Feb 10, 2017

Copy link
Copy Markdown
Member

@nodejs/testing

toiroakr force-pushed the test-improve-crypto-coverage branch from c2701df to ccc74df Compare February 10, 2017 05:12

Copy link
Copy Markdown
Author

@Trott Thanks! fixed.

Comment thread test/parallel/test-crypto-dh.js Outdated

hiroppy Feb 10, 2017
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You can change this line to /^TypeError: "curve" argument should be a string$/.

- check exception when ECDH curve is undefined
- check exception when getPublicKey format is invalid
toiroakr force-pushed the test-improve-crypto-coverage branch from ccc74df to b95d606 Compare February 10, 2017 05:39

toiroakr commented Feb 10, 2017
edited
Loading

Copy link
Copy Markdown
Author

@abouthiroppy Thanks! and sorry for letting you point out the same thing. I fixed it.

hiroppy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you for your contribution :)

hiroppy commented Feb 10, 2017

Copy link
Copy Markdown
Member

jasnell pushed a commit that referenced this pull request Feb 17, 2017
* check exception when ECDH curve is undefined
* check exception when getPublicKey format is invalid

PR-URL: #11279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

jasnell commented Feb 17, 2017

Copy link
Copy Markdown
Member

Landed on 513d9bb

jasnell closed this Feb 17, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Feb 20, 2017
* check exception when ECDH curve is undefined
* check exception when getPublicKey format is invalid

PR-URL: nodejs#11279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
italoacasas pushed a commit that referenced this pull request Feb 22, 2017
* check exception when ECDH curve is undefined
* check exception when getPublicKey format is invalid

PR-URL: #11279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
italoacasas mentioned this pull request Feb 25, 2017
jasnell pushed a commit that referenced this pull request Mar 7, 2017
* check exception when ECDH curve is undefined
* check exception when getPublicKey format is invalid

PR-URL: #11279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

jasnell commented Mar 7, 2017

Copy link
Copy Markdown
Member

will need a backport PR to land on v4

MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
* check exception when ECDH curve is undefined
* check exception when getPublicKey format is invalid

PR-URL: #11279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins mentioned this pull request Mar 9, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto Issues and PRs related to the crypto subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL