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

nagayon-935 / mping / 29893564961
89%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 05:22AM UTC
Jobs 1
Files 39
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

21 Jul 2026 05:57PM UTC coverage: 88.865% (+0.5%) from 88.381%
29893564961

push

github

nagayon-935
feat: add mping completion subcommand for bash/zsh/fish

pflag has no built-in completion generator (unlike cobra), so mping
--<TAB> never completed flags. Add `mping completion bash|zsh|fish`,
which generates the completion script from the same FlagSet parseArgs
builds, so the two can never drift as flags are added.

- Extract registerFlags/thresholdFlags out of parseArgs so both
  parseArgs and the new completion generator share one flag
  definition source.
- cmd/main/completion.go: collectFlags + per-shell templates
  (bash/zsh/fish), with -f/-o/-j completing file paths and -I
  completing network interface names via a hidden
  `mping __complete-interfaces` helper (reuses the existing
  netInterfaces seam from netdetect.go).
- Document install steps for all three shells in both READMEs.

202 of 204 new or added lines in 2 files covered. (99.02%)

2 existing lines in 1 file now uncovered.

4924 of 5541 relevant lines covered (88.86%)

632.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.03
-0.22% cmd/main/mping.go

Coverage Regressions

Lines Coverage ∆ File
2
85.38
4.68% internal/mtr/engine.go
Jobs
ID Job ID Ran Files Coverage
1 29893564961.1 22 Jul 2026 05:22AM UTC 39
88.86
GitHub Action Run
Source Files on build 29893564961
  • Tree
  • List 39
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 54a57d10 on github
  • Prev Build on main (#29152134271)
  • Next Build on main (#30065525796)
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