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

emqx / esockd / 586
67%
master: 67%

Build:
Build:
LAST BUILD BRANCH: feat/conn-rate-token-refund
DEFAULT BRANCH: master
Ran 25 Aug 2026 05:57AM UTC
Jobs 3
Files 22
Run time 1min
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 Aug 2026 05:47AM UTC coverage: 68.813% (+0.9%) from 67.955%
586

push

github

terry-xiaoyu
refactor: keep all listener counters in one stats table, drop init_stats

Review feedback: a second ETS table for socket-error counters is
unnecessary, and init_stats is redundant because ets:update_counter/4
already creates missing counters with a default of 0.

- sock-error reasons now live in esockd_stats under the namespaced key
  {sock_error, Proto, ListenOn, Reason}, which get_stats/1 naturally
  excludes (its match only picks up {{Proto, ListenOn}, Metric} keys);
  get_sock_errors/1 and del_stats match the sock_error namespace
- remove init_stats/2 (export, handle_call and call sites in
  esockd_listener_sup and stats_fun); counters appear lazily on first
  update
- t_get_stats no longer expects {discarded, 0} since metrics are only
  present once incremented

5 of 5 new or added lines in 1 file covered. (100.0%)

52 existing lines in 4 files now uncovered.

748 of 1087 relevant lines covered (68.81%)

203.77 hits per line

Coverage Regressions

Lines Coverage ∆ File
32
62.12
0.33% src/esockd_connection_sup.erl
17
58.33
11.82% src/esockd_acceptor.erl
2
92.31
2.91% src/esockd_listener_sup.erl
1
50.31
0.0% src/esockd_transport.erl
Jobs
ID Job ID Ran Files Coverage
1 586.1 25 Aug 2026 05:57AM UTC 22
68.45
GitHub Action Run
2 586.2 25 Aug 2026 05:57AM UTC 22
68.45
GitHub Action Run
3 586.3 25 Aug 2026 05:57AM UTC 22
68.69
GitHub Action Run
Source Files on build 586
  • Tree
  • List 22
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d3554a29 on github
  • Prev Build on (#584)
  • Next Build on (#588)
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