Skip to content

Refactor provider factory for improved testability and clarity - #5

Merged
evilmarty merged 1 commit into
mainfrom
refactor
Aug 29, 2026
Merged

Refactor provider factory for improved testability and clarity#5
evilmarty merged 1 commit into
mainfrom
refactor

Conversation

@evilmarty

Copy link
Copy Markdown
Owner

This pull request refactors the provider factory to enhance code clarity and improve testability. It introduces Sources and ProviderConfig structs to simplify function signatures and centralize configuration handling. Tests and function calls have been updated accordingly.

  • Introduced Sources struct to encapsulate environment and git config lookups.
  • Introduced ProviderConfig struct to bundle provider configuration parameters.
  • Refactored Resolve* and NewProvider functions to use the new structs.
  • Updated tests to accommodate the refactored function signatures.
  • Added a vulnerability check step to the CI workflow.

- Introduced `Sources` and `ProviderConfig` structs to simplify function signatures
- Updated `Resolve*` and `NewProvider` functions to use the new structs
- Adjusted tests to accommodate the refactored function signatures
@evilmarty
evilmarty merged commit 4c916f6 into main Aug 29, 2026
2 checks passed
@evilmarty
evilmarty deleted the refactor branch August 29, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant