-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add options to Like filter: starts with, ends with, contains modes #228
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
Conversation
…g modes Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
… modes Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
tests/Common/Reader/ReaderWithFilter/BaseReaderWithLikeTestCase.php
Outdated
Show resolved
Hide resolved
tests/Common/Reader/ReaderWithFilter/BaseReaderWithLikeTestCase.php
Outdated
Show resolved
Hide resolved
tests/Common/Reader/ReaderWithFilter/BaseReaderWithLikeTestCase.php
Outdated
Show resolved
Hide resolved
tests/Common/Reader/ReaderWithFilter/BaseReaderWithLikeTestCase.php
Outdated
Show resolved
Hide resolved
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
…esults Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot add CHANGELOG. |
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot enhance test so the following mutants are covered: |
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
... Enhanced test coverage with specific Unicode test cases that target each escaped mutant:
These tests will fail if non-Unicode string functions are used instead of the mb_* functions, ensuring proper multi-byte character support. Commit 7a7b5cc Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
The following mutants are still there: |
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
... Enhanced test coverage with specific Unicode test cases that target each escaped mutant:
These test cases specifically target the exact mutations reported in your analysis. Commit 7bff5b9 Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Mutants to fix: |
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
... Enhanced test coverage with two additional test cases that specifically target the escaped mutant on line 74. These cases use multi-byte Unicode characters (emojis) to create scenarios where |
This PR implements the enhancement requested in issue #200 by adding configurable matching modes to the
Likefilter. Users can now specify whether they want to match text that starts with, ends with, or contains the search value.Changes Made
New LikeMode Enum
Added a new
LikeModeenum with three cases:CONTAINS- Field value contains the search value (default, maintains backward compatibility)STARTS_WITH- Field value starts with the search valueENDS_WITH- Field value ends with the search valueEnhanced Like Filter
Updated the
Likefilter constructor to accept an optionalmodeparameter:Updated LikeHandler Implementation
Modified the
LikeHandlerto support all three matching modes with proper:Example Usage
Backward Compatibility
All existing code continues to work unchanged. The new
modeparameter defaults toLikeMode::CONTAINS, which preserves the original behavior.Testing
Added comprehensive test coverage including:
Fixes #200
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/igorw/evenement/zipball/0a16b0d71ab13284339abb99d9d2bd813640efbc/usr/bin/php8.3 -n -c /tmp/PNgJjQ /usr/bin/composer install(http block)https://api.github.com/repos/yiisoft/arrays/zipball/a9e3a3393c8843838c5764354cbe9c8a53cc71a9/usr/bin/php8.3 -n -c /tmp/rAitWE /usr/bin/composer install --no-dev(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.