Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure Project and Add Unit Tests #176

Closed
wants to merge 1 commit into from

Conversation

kemalcanbora
Copy link

Restructure Project and Add Unit Tests

Summary of Changes

This merge request introduces several significant changes to improve the project structure, testability, and overall code quality of the rename-pvc tool.

Key Changes

  1. Project Restructuring:

    • Separate package (pkg/renamepvc) to few little files like helpers.go, options.goetc.
  2. Unit Tests:

    • Updated unit tests for the renamepvc package
    • Added a basic unit test for the main package
  3. Code Refactoring:

    • Enhanced code organization for better readability and maintainability
    • Functions that violated the single responsibility principle have been split into smaller pieces.

Benefits

  • Improved project structure allows for better separation of concerns
  • Increased test coverage enhances reliability and makes future changes safer
  • Refactored code is more maintainable and easier to understand

To run the tests:

go test ./...

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