• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cossacklabs / themis / #7576
88%
master: 83%

Build:
Build:
LAST BUILD BRANCH: release/0.15.0
DEFAULT BRANCH: master
Ran 09 Apr 2020 12:34PM UTC
Jobs 1
Files 73
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2020 12:19PM UTC coverage: 87.707%. Remained the same
#7576

push

travis-ci

web-flow
Update JsThemis tests (#620)

* Secure Cell: reuse WasmThemis tests

Update Secure Cell test suite with the tests used in WasmThemis. There
are some minor tweaks here and there to make them compatible, but it's
all the same tests otherwise.

* Secure Cell: report TypeError correctly

Instead of throwing a generic error with INVALID_PARAMETER status code,
throw a proper TypeError when we notice an issue with input types.

This commit updates all cryptosystems, not only Secure Cell.

* Secure Cell: allow "null" for context values

In addition to allowing empty buffers and omitted arguments, accept
explicit "null" values when the context is not used. This improves
API compatibility with WasmThemis.

* Secure Message: reuse WasmThemis tests

In JsThemis there is no SecureMessageSign and SecureMessageVerify
objects, empty keys should be used instead.

* Secure Message: allow "null" keys for sign/verify

Allow omitted keys to be specified with "null" values in addition to
empty buffers. This improves compatibility with WasmThemis API and is
consistent with other places where we allow optional values.

* Secure Message: disallow both empty keys

Check that the user has provided either public or private key, do not
allow both keys to be omitted.

* Secure Comparator: reuse WasmThemis tests

Note that JsThemis uses a bit different naming and does not have a
"destroy()" method. The Secure Comparator object is freed when Node.js
runtime collects the garbage.

* Secure Session: reuse WasmThemis tests

API is slightly different in JsThemis and WasmThemis, the names are not
the same and JsThemis does not have a dedicated negotiation method,
using just unwrap() for that.

* Secure Session: check private key validity

WasmThemis verifies the private key during Secure Session construction.
Don't defer this to usage in JsThemis either.

* Secure Session: handle exceptions in callback

We should check the call result... (continued)

3767 of 4295 relevant lines covered (87.71%)

19340.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #7576.1 09 Apr 2020 12:34PM UTC 0
87.71
Source Files on build #7576
Detailed source file information is not available for this build.
  • Back to Repo
  • 49d83894 on github
  • Prev Build on HEAD
  • Next Build on HEAD
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc