Skip to content

Conversation

@floriankraemer
Copy link
Contributor

@floriankraemer floriankraemer commented Oct 29, 2025

Updated several tests to increase code coverage

Florian Krämer added 2 commits October 29, 2025 02:00
… method signature validation

- Added new methods to TestClass to cover various scenarios including max parameters, name mismatches, nullable types, class types, protected visibility, and valid method signatures.
- Updated MethodSignatureMustMatchRuleTest to include tests for the new methods, ensuring proper validation of method signatures against defined patterns and visibility requirements.
- Improved error reporting for parameter mismatches and added checks for new method scenarios.
- Introduced TooManyArgumentsClass with a valid method and two new classes: TooManyArgsService and TooManyArgsOther, each containing methods with excessive arguments.
- Updated TooManyArgumentsRuleTest to include tests for the new classes, ensuring proper error reporting for methods exceeding the allowed argument limit.
- Enhanced ClassMustBeReadonlyRuleTest with a test for valid readonly classes to prevent false positives.
@floriankraemer floriankraemer changed the title Enhance TestClass with additional methods and corresponding tests for… Increase Code Coverage Oct 29, 2025
@floriankraemer floriankraemer merged commit 2e8b13a into master Oct 29, 2025
4 checks passed
@floriankraemer floriankraemer deleted the increase-tests branch October 29, 2025 01:14
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