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
Add a few more count esque functions to not decrement against #640
Add a few more count esque functions to not decrement against #640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to Infection. We noticed you didn't add any tests. Could you please add them to make sure everything works as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
It would be nice to add tests for new functions as well. At least mutant won't be killed when we implement this mutator #597, which is not a good thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -44,7 +44,7 @@ | |||
*/ | |||
final class DecrementInteger extends Mutator | |||
{ | |||
private const COUNT_NAMES = ['count', 'sizeof']; | |||
private const COUNT_NAMES = ['count', 'grapheme_strlen', 'iconv_strlen', 'mb_strlen', 'sizeof', 'strlen']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about starting to wrap here sooner or later?
They dont need decrementing for the same reason as count functions.
c1ba65e
74d1ec3
to
c1ba65e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @BackEndTea
Thank you @borNfreee, @sanmai & @localheinz |
They dont need decrementing for the same reason as count functions.