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

rm-hull / git-commit-summary / 18959541683

31 Oct 2025 01:06AM UTC coverage: 33.333% (+33.3%) from 0.0%
18959541683

push

github

web-flow
test: Add unit tests & introduce dependency injection (#4)

* refactor(app): Introduce dependency injection

Refactor the core application logic to utilize interfaces for
Git and UI operations, allowing dependencies to be injected.

This enables comprehensive unit testing of the application flow
and state transitions, addressing the lack of existing tests.

*   Introduces `app.Git` and `app.UI` interfaces.
*   Adds `github.com/stretchr/testify` for assertion helpers.
*   Includes unit tests for `app`, `config`, and `llm_provider`.

* refactor: Move spinner logic to UI interface

The spinner implementation is now abstracted behind the `UIClient`
interface, decoupling the core application logic from the underlying
library (`github.com/briandowns/spinner`).

This improves separation of concerns and testability.

*   Introduced `StartSpinner`, `UpdateSpinner`, and `StopSpinner`
    methods on `UIClient`.
*   Implemented spinner management in `internal/ui/client.go`.

16 of 49 new or added lines in 7 files covered. (32.65%)

1 existing line in 1 file now uncovered.

108 of 324 relevant lines covered (33.33%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/git/diff.go


Source Not Available

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