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

gchaincl / sqlhooks / 142
76%

Build:
DEFAULT BRANCH: master
Ran 25 Nov 2019 02:24PM UTC
Jobs 3
Files 8
Run time 2min
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

25 Nov 2019 02:21PM UTC coverage: 73.432% (+0.5%) from 72.897%
142

push

travis-ci

web-flow
Ccmtaylor compose (#28)

* make testHooks implement OnErrorer

* allow composing Hooks

adds func Compose that allows composing multiple Hooks into one.
It runs every callback on every hook in argument order,
even if previous hooks return an error.
If multiple hooks return errors, the error return value will be
MultipleErrors, which allows for introspecting the errors if necessary.

I chose not to abort processing when any handler returns an error,
because common usage would be to compose logging / tracing / metrics,
and those kinds of handlers will want to run in every case to make
sure that e.g. latencies are tracked correctly.

I added compatibility with Go 1.13's errors.Is/errors.As methods under
a conditional compilation flag.

Fixes: #12

* extract function for error handling

57 of 57 new or added lines in 2 files covered. (100.0%)

398 of 542 relevant lines covered (73.43%)

24.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 142.1 25 Nov 2019 02:24PM UTC 0
76.83
Travis Job 142.1
2 142.2 25 Nov 2019 02:24PM UTC 0
73.43
Travis Job 142.2
3 142.3 25 Nov 2019 02:26PM UTC 0
73.43
Travis Job 142.3
Source Files on build 142
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #142
  • 70eb8971 on github
  • Prev Build on master (#139)
  • Next Build on master (#143)
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

© 2025 Coveralls, Inc