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

CowDogMoo / bcp / 19994010127
53%

Build:
DEFAULT BRANCH: main
Ran 06 Dec 2025 08:44PM 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

06 Dec 2025 08:42PM UTC coverage: 66.227% (+22.0%) from 44.18%
19994010127

push

github

web-flow
test: add comprehensive mock-based tests for transfer and command logic (#8)

**Key Changes:**

- Added extensive mocked unit tests for transfer and command logic
- Introduced S3API and SSMAPI interfaces to enable dependency injection
- Refactored transfer logic to use interfaces for improved testability
- Updated GitHub Actions workflows and indirect dependencies

**Added:**

- Mocked test suites for transfer logic (`transfer_mocked_test.go`), command root (`root_mocked_test.go`), and list commands (`list_mocked_test.go`) to ensure coverage and robustness without real AWS dependencies
- `pkg/transfer/interfaces.go` defining S3API and SSMAPI interfaces for use in production and testing

**Changed:**

- Refactored `pkg/transfer/transfer.go` to support dependency injection via S3API and SSMAPI interfaces, updating function signatures for `uploadToS3`, `uploadDirectory`, `uploadFile`, `runSSMCommand`, and `checkAWSCLIInstalled`
- Updated `go.mod` and `go.sum` to bump indirect dependencies (`golang.org/x/sys` and `golang.org/x/text`)
- Improved testability by adding `ExecuteWithClients` to support mocked AWS clients
- Updated YAML formatting in `.github/labeler.yaml` for consistency
- Upgraded action versions in workflow files to latest minor/patch releases and moved permissions to top-level in GitHub Actions workflows
- Replaced the `goreleaser` badge in `README.md` with a latest release badge for clarity

8 of 9 new or added lines in 1 file covered. (88.89%)

502 of 758 relevant lines covered (66.23%)

5.39 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.96
63.1% pkg/transfer/transfer.go
Jobs
ID Job ID Ran Files Coverage
1 19994010127.1 06 Dec 2025 08:44PM UTC 9
66.23
GitHub Action Run
Source Files on build 19994010127
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fd2c16bc on github
  • Prev Build on main (#19992704908)
  • Next Build on main (#19997570054)
  • 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