Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

sodium-test

0.8.1 • 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

75

Version

0.8.1

License

MIT

Unpacked Size

4.77 MB

Total Files

17

Last publish

Collaborators

  • avatar
  • avatar