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

CowDogMoo / warpgate / 21619626266
35%
main: 35%

Build:
Build:
LAST BUILD BRANCH: refactor/idiomatic-go-doc-comments
DEFAULT BRANCH: main
Ran 03 Feb 2026 06:28AM UTC
Jobs 1
Files 75
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

03 Feb 2026 06:25AM UTC coverage: 34.751% (+4.6%) from 30.116%
21619626266

Pull #1683

github

l50
refactor: improve doc comments and context handling across cli and core packages

**Added:**

- Added `cmd/warpgate/root_test.go` with comprehensive unit tests for Cobra/Viper integration, CLI flag handling, context propagation, and root/version command behaviors

**Changed:**

- Rewrote or clarified doc comments for constructor functions (e.g., `NewParser`, `NewValidator`, `NewLoader`, `NewGitOperations`, `NewPathValidator`) to use Go style and reference returned concrete types
- Improved doc comments throughout CLI packages to clarify function behavior, especially for constructors and public APIs
- Enhanced signal and context management in `cmd/warpgate/main.go` by wiring SIGINT/SIGTERM to command execution context and ensuring cleanup
- Updated `cmd/warpgate/manifests.go` to invoke parent's `PersistentPreRunE` hook for consistent initialization and removed redundant flag commentaries
- Refined comment and docstring style in `cmd/warpgate/root.go`; removed stepwise commentary, clarified Viper/flag precedence logic, adjusted help output, and documented `ApplyViperOverrides`
- Changed version output in `cmd/warpgate/version.go` to use `cmd.Printf` for consistent output stream handling
- Updated doc comments in template and manifest core packages for constructors and key public methods, using bracketed type references and clarifying method effects
- Clarified Go version in `go.mod` from 1.25.5 to 1.25.6

**Removed:**

- Removed superfluous inline commentary, redundant step-by-step code comments, and transitional notes in favor of canonical Go doc comments across multiple files
- Eliminated unnecessary TODO-style comments in `manifests/registry.go` and `builder/ami/imagebuilder.go` regarding manifest idempotency and versioning logic
Pull Request #1683: refactor: improve code documentation and CLI env override logic

25 of 36 new or added lines in 4 files covered. (69.44%)

1 existing line in 1 file now uncovered.

3906 of 11240 relevant lines covered (34.75%)

8.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
89.76
89.76% cmd/warpgate/manifests.go
4
75.6
75.6% cmd/warpgate/root.go
5
0.0
0.0% cmd/warpgate/main.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
35.38
0.1% templates/registry.go
Jobs
ID Job ID Ran Files Coverage
1 21619626266.1 03 Feb 2026 06:28AM UTC 75
34.75
GitHub Action Run
Source Files on build 21619626266
  • Tree
  • List 75
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1683
  • PR Base - main (#21554991987)
  • Delete
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