• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 1_13
  • add-circuitgen-doc
  • cep21-patch-1
  • cover
  • coverage
  • coverage_gowrap
  • coverage_timed
  • coveralls
  • development-v4
  • fix
  • fix_json
  • latest_go
  • license
  • master
  • 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
7465498880 development-v4 fix: fix all golangci-lint errors Pull #121 09 Jan 2024 06:44PM UTC cep21 github
92.19
7465413303 development-v4 fix: thread context Pull #121 09 Jan 2024 06:35PM UTC cep21 github
92.19
7464707591 development-v4 doc: Comment code Pull #121 09 Jan 2024 05:31PM UTC cep21 github
91.95
7464708061 development-v4 doc: Comment code Pull #121 09 Jan 2024 05:31PM UTC cep21 github
92.19
7464647881 development-v4 fix: update build as well Pull #121 09 Jan 2024 05:30PM UTC cep21 github
92.19
7464649062 development-v4 fix: update build as well Pull #121 09 Jan 2024 05:26PM UTC cep21 github
92.19
6474233369 master build(go): Update to go 1.21 (#119) push 10 Oct 2023 08:04PM UTC web-flow github
90.37
6474128636 cep21-patch-1 build(go): Update to go 1.21 Pull #119 10 Oct 2023 07:53PM UTC web-flow github
90.53
4352157913 master Upgrade tests to 1.20 (#118) push 07 Mar 2023 08:35AM UTC GitHub github
90.48
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