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

letsencrypt / boulder / 13173
66%
master: 66%

Build:
Build:
LAST BUILD BRANCH: ocsp-fail-stops-issuances
DEFAULT BRANCH: master
Ran 06 Nov 2020 09:22PM UTC
Jobs 1
Files 114
Run time 13s
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

06 Nov 2020 09:17PM UTC coverage: 65.309% (-0.006%) from 65.315%
13173

push

travis-pro

web-flow
Use error wrapping for berrors and tests (#5169)

This change adds two new test assertion helpers, `AssertErrorIs`
and `AssertErrorWraps`. The former is a wrapper around `errors.Is`,
and asserts that the error's wrapping chain contains a specific (i.e.
singleton) error. The latter is a wrapper around `errors.As`, and
asserts that the error's wrapping chain contains any error which is
of the given type; it also has the same unwrapping side effect as
`errors.As`, which can be useful for further assertions about the
contents of the error.

It also makes two small changes to our `berrors` package, namely
making `berrors.ErrorType` itself an error rather than just an int,
and giving `berrors.BoulderError` an `Unwrap()` method which
exposes that inner `ErrorType`. This allows us to use the two new
helpers above to make assertions about berrors, rather than
having to hand-roll equality assertions about their types.

Finally, it takes advantage of the two changes above to greatly
simplify many of the assertions in our tests, removing conditional
checks and replacing them with simple assertions.

13274 of 20325 relevant lines covered (65.31%)

0.73 hits per line

Jobs
ID Job ID Ran Files Coverage
7 13173.7 (RUN="coverage" CONTAINER="netaccess") 06 Nov 2020 09:22PM UTC 0
65.31
Travis Job 13173.7
Source Files on build 13173
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13173
  • 294d1c31 on github
  • Prev Build on main (#13142)
  • Next Build on main (#13177)
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