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

gookit / rux / 35857494576
92%

Build:
DEFAULT BRANCH: master
Ran 23 Sep 2026 11:57AM UTC
Jobs 4
Files 38
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

23 Sep 2026 11:02AM UTC coverage: 92.899% (+0.9%) from 91.969%
35857494576

push

github

inhere
fix(server): report the resolved listen address for port 0 / --open

Start already bound the listener explicitly, but Run() exposed the result only
through an exported field written from another goroutine, and it guessed how
long net.Listen takes by sleeping 50ms before running PostStart. A caller doing
`--port 0` plus `--open` could only read ":0" (or a racy value) and had no way
to build a usable URL.

- Start signals the real bind over an internal channel; Run waits on that
  signal instead of time.After(50ms), so PostStart hooks always observe the
  resolved address
- add ListenAddr/ListenPort/LocalURL/IsListening/WaitListening; WaitListening
  waits for the bind, or returns the startup error / ErrNotListening
- keep the documented Host/Port fields in sync with the resolved address
- LocalURL maps wildcard binds (:0, 0.0.0.0:0, [::]:0) onto 127.0.0.1, honors
  TLS, and returns "" while the port is not final
- tests for ephemeral ports, wildcard binds, hook visibility, bind/PreStart
  failures, and URL formatting; README + README.zh-CN document the flow

111 of 117 new or added lines in 1 file covered. (94.87%)

2852 of 3070 relevant lines covered (92.9%)

3.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
87.01
8.73% server/server.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 35857494576.1 23 Sep 2026 11:57AM UTC 38
91.41
GitHub Action Run
2 Go-1.24 - 35857494576.2 23 Sep 2026 11:58AM UTC 38
92.13
GitHub Action Run
3 Go-1.23 - 35857494576.3 23 Sep 2026 11:57AM UTC 38
92.26
GitHub Action Run
4 Go-1.25 - 35857494576.4 23 Sep 2026 11:58AM UTC 38
92.33
GitHub Action Run
Source Files on build 35857494576
  • Tree
  • List 38
  • Changed 38
  • Source Changed 0
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6dc915bd on github
  • Prev Build on master (#31662192626)
  • Next Build on master (#35871058653)
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