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

nagayon-935 / mping / 26717572175
83%
main: 83%

Build:
Build:
LAST BUILD BRANCH: feature/configurable-thresholds
DEFAULT BRANCH: main
Ran 31 May 2026 04:06PM UTC
Jobs 1
Files 18
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

31 May 2026 04:06PM UTC coverage: 82.897% (+0.08%) from 82.815%
26717572175

Pull #26

github

nagayon-935
feat: add configurable colour-coding/alert thresholds

Externalise the previously hardcoded RTT/Jitter/Loss colour boundaries
into a ui.Thresholds value that can be set via CLI flags or the YAML
hosts file. warn = orange boundary, crit = red boundary.

- ui.Thresholds type with DefaultThresholds() and Validate() (warn < crit,
  sane ranges); package-level activeThresholds applied once at Run() start
- RunOptions.Thresholds threads the config into the TUI
- CLI flags: --rtt-warn/--rtt-crit, --jitter-warn/--jitter-crit,
  --loss-warn/--loss-crit (defaults match previous constants)
- YAML: thresholds: block (rtt-warn, rtt-crit, jitter-warn, jitter-crit,
  loss-warn, loss-crit), CLI flags override YAML
- Validation at startup and on YAML reload (validateHostsDoc)
- Tests for Validate(), colour fns under custom thresholds, flag/YAML
  precedence, and reload validation
- README.md / README.ja.md updated (Options table, usage example,
  hosts.yaml block, colour-coding notes)

Behaviour is unchanged by default — all defaults equal the prior constants.
Pull Request #26: feat: configurable colour-coding/alert thresholds

104 of 123 new or added lines in 5 files covered. (84.55%)

3606 of 4350 relevant lines covered (82.9%)

0.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
78.42
0.42% cmd/main/mping.go
2
93.33
internal/ui/thresholds.go
2
84.44
-0.27% internal/ui/tui.go
Jobs
ID Job ID Ran Files Coverage
1 26717572175.1 31 May 2026 04:06PM UTC 18
82.9
GitHub Action Run
Source Files on build 26717572175
  • Tree
  • List 18
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #26
  • PR Base - main (#26717192587)
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

© 2026 Coveralls, Inc