Enhance crypto/sig.js coverage
I added these case:
- Call
Sign
without new - Call
Verify
without new - Call
Verify#verify
withoptions.padding !== options.padding >> 0
- Call
Verify#verify
withoptions.saltLength !== options.saltLength >> 0
Current coverage: https://coverage.nodejs.org/coverage-06e1b0386196f8f8/root/internal/crypto/sig.js.html
After this PR: crypto/sig.js become 100% covered even in branch coverage.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test