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

nagayon-935 / mping / 23676295051
85%
main: 83%

Build:
Build:
LAST BUILD BRANCH: feature/configurable-thresholds
DEFAULT BRANCH: main
Ran 28 Mar 2026 03:16AM UTC
Jobs 1
Files 10
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

28 Mar 2026 03:11AM UTC coverage: 85.45% (+2.4%) from 83.053%
23676295051

Pull #8

github

nagayon-935
refactor: reduce duplication and improve code structure without changing behavior

- icmp_errors.go: replace switch statements with map-based lookups, extract icmpErrorBodyData helper
- pinger.go: unify runReceiverV4/V6 into shared runReceiver loop with handleEchoReply/handleICMPError,
  split runWorker into resolveTarget/getWriteFunc/sendProbe/waitForReply sub-functions
- tui.go: extract duplicated double-border drawing into makeDoubleBorderDrawFunc,
  move traceroute/port-monitor rendering into renderTracerouteTable/renderPortMonitorTable,
  remove unused tablePaneHeight constant (Run() reduced from ~884 to ~470 lines)
- tui_helpers.go: add paddedCell, statusColorTag shared helpers
- Add tests for all newly extracted functions in both pinger and ui packages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #8: refactor: reduce duplication and improve code structure without chang…

402 of 449 new or added lines in 4 files covered. (89.53%)

2 existing lines in 1 file now uncovered.

2543 of 2976 relevant lines covered (85.45%)

1.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
81.94
3.6% internal/pinger/pinger.go
23
96.18
-3.08% internal/ui/tui_helpers.go

Coverage Regressions

Lines Coverage ∆ File
2
81.94
3.6% internal/pinger/pinger.go
Jobs
ID Job ID Ran Files Coverage
1 23676295051.1 28 Mar 2026 03:16AM UTC 10
85.45
GitHub Action Run
Source Files on build 23676295051
  • Tree
  • List 10
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #8
  • PR Base - main (#23640233132)
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