npm

Need private packages and team management tools?Check out npm Orgs. »

sodium-test

0.7.2 • Public • Published

sodium-test

Test harness for Javascript libsodium implementations

npm install sodium-test

Usage

require('sodium-test')(require('sodium-native'))
 

The above will test that sodium-native passes all the sodium-test tests and write results in TAP format to stdio.

API

harness(sodiumApi)

Will run tests on sodiumApi and assert whether it conforms to the libsodium API. Individual subAPI's can be tested, and all follow the same pattern, eg. require('randombytes_buf')(sodiumApi).

Findings are written to stdio.

License

MIT

install

npm i sodium-test

Downloadsweekly downloads

52

version

0.7.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability