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

raravena80 / ya / 185
78%

Build:
DEFAULT BRANCH: main
Ran 21 Jan 2026 05:31AM UTC
Jobs 1
Files 9
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 Jan 2026 05:30AM UTC coverage: 77.576% (-8.6%) from 86.128%
185

push

circleci

web-flow
feat: Add missing features and improve test coverage (#58)

Add new CLI features including connection timeout configuration, output
formatting options, dry-run mode, host pattern filtering, and progress
indicators. Also improve test coverage from 79.4% to 82.5% for the cmd
package through dependency injection for previously untestable code.

Features added:
- Connection timeout overrides (connect-timeout, command-timeout flags)
- Output format selection (text, json, yaml, table)
- Dry-run mode for previewing operations
- Host pattern matching with include/exclude filters
- Progress indicator option for file transfers

Bug fixes:
- Fix SCP flag binding bug in cmd/scp.go (flags were bound to wrong
  viper keys)

Testing improvements:
- Add dependency injection for os.Exit and fmt.Println to make
  Execute() function testable (0% → 100% coverage)
- Add comprehensive unit tests for new features
- Add tests for formatters (TextFormatter, JSONFormatter)
- Add tests for host pattern matching (matchesPattern, shouldIncludeHost,
  filterHosts)
- Add tests for new option setters

Coverage improvements:
- cmd package: 79.4% → 82.5%
- Execute function: 0% → 100% (previously untestable due to os.Exit)
- common package: 97.6% (maintained)

Signed-off-by: Ricardo Aravena <raravena80@gmail.com>

154 of 198 new or added lines in 5 files covered. (77.78%)

52 existing lines in 4 files now uncovered.

512 of 660 relevant lines covered (77.58%)

0.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
80.0
17.29% cmd/root.go
12
68.42
-31.58% cmd/options.go
28
80.0
-5.71% ops/exec.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.0
-5.71% ops/exec.go
2
80.0
17.29% cmd/root.go
9
42.31
-34.62% ops/cmd.go
40
57.43
-27.03% ops/copy.go
Jobs
ID Job ID Ran Files Coverage
1 185.1 21 Jan 2026 05:31AM UTC 9
77.58
CircleCI Job
Source Files on build 185
  • Tree
  • List 9
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #185
  • a60d376d on github
  • Prev Build on main (#183)
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