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

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

Build:
Build:
LAST BUILD BRANCH: release/0.15.0
DEFAULT BRANCH: master
Ran 22 Apr 2020 03:08PM 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

22 Apr 2020 02:56PM UTC coverage: 87.707%. Remained the same
#7591

push

travis-ci

web-flow
Improve GoThemis error introspection (#622)

Add numeric error code to ThemisError struct, accessible via "Code()"
method. Now it will be possible to communicate Themis Core errors to
the user code. This is intended for programmatic consumption. Human-
readable descriptive message is still available via Error().

Errors with code can be constructed using "NewWithCode()" constructor.
Existing code sites have been updated to use it for reporting various
early warnings about invalid arguments. Themis Core checks for these
violations too, we do these checks in Go to be able to provide more
specific descriptions to users.

Note that there are still uses of errors.New(). Not all-- I mean, *all*
CGo call sites right now do not return Themis Core errors. This will be
refactored eventually. For now, these call sites with use a placeholder
THEMIS_FAIL as the code, which is going to be correct in 99% cases.

Also note that we now export error code constants. All of this makes it
easier for user code to decide on an error type. It will also make it
easier for us to write new CGo code as we can keep use of C to minimum.

3767 of 4295 relevant lines covered (87.71%)

19358.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #7591.1 22 Apr 2020 03:08PM UTC 0
87.71
Source Files on build #7591
Detailed source file information is not available for this build.
  • Back to Repo
  • 11ea972c 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