Skip to content

Enhance Cipheriv, Decipheriv coverage

I added these tests:

Cipheriv
  • Call constructor without new keyword
  • Call constructor with cipher is not string
  • Call constructor with cipher is string and key is not string
  • Call constructor with cipher is strong, key is string and iv is not string
Decipheriv
  • Call constructor without new keyword
  • Call constructor with cipher is not string
  • Call constructor with cipher is string and key is not string
  • Call constructor with cipher is strong, key is string and iv is not string

Current coverage is here: https://coverage.nodejs.org/coverage-06e1b0386196f8f8/root/internal/crypto/cipher.js.html

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)

test

Merge request reports

Loading