Skip to content

Conversation

@shyim
Copy link
Member

@shyim shyim commented Feb 3, 2026

Add tests for:

  • root.go: extension loading and version constraint parsing
  • config.go: ConfigExtraBundle.ResolvePath method
  • asset.go: ExtensionAssetConfig methods

Also rename test_helper.go to testing_helpers_test.go to follow Go testing conventions.

Add tests for:
- root.go: extension loading and version constraint parsing
- config.go: ConfigExtraBundle.ResolvePath method
- asset.go: ExtensionAssetConfig methods

Also rename test_helper.go to testing_helpers_test.go to follow
Go testing conventions.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copilot AI review requested due to automatic review settings February 3, 2026 07:15
Resolve conflict in config_test.go by keeping table-driven tests from
main and additional test coverage from feature branch.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances test coverage for the extension package by adding comprehensive tests for key functionality and renaming a test helper file to follow Go conventions.

Changes:

  • Added tests for root.go covering extension detection (apps, plugins, bundles) and version constraint parsing
  • Added tests for config.go covering ConfigExtraBundle methods, ConfigStore methods, config reading, and validation
  • Added tests for asset_config.go covering ExtensionAssetConfig filter methods and entry configuration
  • Renamed test_helper.go to testing_helpers_test.go following Go testing naming conventions

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
internal/extension/testing_helpers_test.go New file (renamed from test_helper.go) containing test helpers including testCheck implementation and image creation utilities
internal/extension/root_test.go New comprehensive tests for extension detection by folder type and Shopware version constraint parsing
internal/extension/config_test.go Added 216 lines of tests covering ConfigExtraBundle path/name resolution, ConfigStore methods, config reading, and validation
internal/extension/asset_test.go Added 91 lines of tests for ExtensionAssetConfig filtering methods and ExtensionAssetConfigEntry behaviors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shyim shyim merged commit 92b22d8 into main Feb 3, 2026
3 checks passed
@shyim shyim deleted the test/add-extension-tests branch February 3, 2026 07:34
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.

2 participants