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

cep21 / circuit
98%

Build:
DEFAULT BRANCH: master
Repo Added 17 Jun 2019 04:12AM UTC
Files 23
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • 1_13
  • add-circuitgen-doc
  • cep21-patch-1
  • cover
  • coverage
  • coverage_gowrap
  • coverage_timed
  • coveralls
  • development-v4
  • fix
  • fix_json
  • latest_go
  • license
  • modules
  • pr
  • promo
  • refs/tags/v3.2.1
  • refs/tags/v3.2.2
  • rollingcoverage
  • stats
  • statsd_coverage
  • test3
  • tests
  • tidy
  • updates
  • v3.0.0
  • v3.0.1
  • v3.1.0
  • v3.1.1
  • with_go_modules_and_v3

18 Aug 2026 12:06PM UTC coverage: 97.907% (+7.5%) from 90.37%
32135076724

push

github

web-flow
Re-enable coverage upload and close remaining coverage gaps (#161)

* test: re-enable coverage upload and close remaining coverage gaps

The Coveralls upload step was gated on refs/heads/main, but the default
branch is master, so coverage has not been published since January 2024.
Point it at master.

Since Go 1.22 the untested example binary counted as 0% and pulled the
module total from ~95% to ~86%. main() is split into newHandler /
printInstructions (plus a new -addr flag) so a smoke test can run the
example circuits against an httptest server and check both /debug/vars
and /hystrix.stream. The background goroutines still panic if a circuit
misbehaves, so this doubles as an integration check.

New unit tests for previously uncovered paths:
- GeneralConfig CustomConfig merging (copy, no aliasing, receiver wins)
- Circuit/Manager Var output with rolling run + fallback stats, including
  a throttled fallback
- Configurable open/close logic receiving SetConfig{,Not}ThreadSafe
- ClosedToOpen.Prevent short-circuiting without opening
- ForcedClosed never transitioning to open, then opening once cleared
- nil Circuit/Manager receivers; SimpleBadRequest Cause/Unwrap
- rolling FallbackStats.Var and negative config sanitizing
- responsetimeslo Factory with per-circuit config and collectors
- hystrix Opener err_% in MarshalJSON
- metriceventstream hystrix property reporting and non-flushable writer
- faststats RollingSum and Atomic UnmarshalJSON error paths
- evar fallback for a Var whose String() is not JSON

Total statement coverage goes from 86.4% to ~97%; the root package,
closers/hystrix, metrics/rolling and metrics/responsetimeslo are at 100%.
No library (non-example) source changes.

* test: avoid repeated string literals flagged by goconst

Newer golangci-lint counts literals in _test.go files toward goconst's
per-package total, so the new tests tripped it for the expvar key names
already used twice in rolling.go and for a repeated value in
config_tes... (continued)

17 of 31 new or added lines in 1 file covered. (54.84%)

2245 of 2293 relevant lines covered (97.91%)

172003.42 hits per line

Relevant lines Covered
Build:
Build:
2293 RELEVANT LINES 2245 COVERED LINES
172003.42 HITS PER LINE
Source Files on master
  • Tree
  • List 23
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32135076724 master Re-enable coverage upload and close remaining coverage gaps (#161) * test: re-enable coverage upload and close remaining coverage gaps The Coveralls upload step was gated on refs/heads/main, but the default branch is master, so coverage has not ... push 18 Aug 2026 12:08PM UTC web-flow github
97.91
6474233369 master build(go): Update to go 1.21 (#119) push 10 Oct 2023 08:04PM UTC web-flow github
90.37
4352157913 master Upgrade tests to 1.20 (#118) push 07 Mar 2023 08:35AM UTC GitHub github
90.48
3251886323 master build: Latest go version (#117) push 14 Oct 2022 05:46PM UTC GitHub github
90.37
3251719882 master fix typo (#116) push 14 Oct 2022 05:15PM UTC GitHub github
90.48
2572775530 master Run tests on 1.18 (#112) push 27 Jun 2022 11:43PM UTC GitHub github
90.74
1947990296 master Add AfterFunc configuration option to hystrix.ConfigureCloser (#111) push 07 Mar 2022 09:18PM UTC GitHub github
90.63
1579780774 master Test with 1.17 (#110) push 14 Dec 2021 08:35PM UTC GitHub github
90.24
1191880853 master [trivial] remove benchmark dependencies from v3 (#109) push 01 Sep 2021 09:26PM UTC GitHub github
90.14
882889192 master README typo (#107) push 27 May 2021 04:37PM UTC GitHub github
90.35
See All Builds (560)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc