-
Notifications
You must be signed in to change notification settings - Fork 251
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 mutation for date operation #4917
Comments
I think this is a good idea to have all these methods supported. I would also support both the |
I'm personally less in favor of |
I have the following example for
|
Thanks for the examples. I these particular examples are already tackled by the equality operator group of mutants, correct? The problem with adding mutants for all methods is that they often overlap with other mutants that we already have. You probably call Can you agree with this? |
I see your point. The equality operator should cover these case. I will update the PR according. |
…4917) Remove the get mutator according exchange in the issue stryker-mutator#4917
Is your feature request related to a problem? Please describe.
It would be interesting to have mutation produced for operation on Date.
Expression like :
will produce interesting mutation based on the +1. It would also be interesting to have mutation changing the
setDate
orgetDate
operation (as updating month and not the day of month).Describe the solution you'd like
I propose to add the following mutation (to
method-expression-mutator
) :getDate
to/fromgetMonth
setDate
to/fromsetMonth
getHours
to/fromgetMinutes
setHours
to/fromsetMinutes
Describe alternatives you've considered
Maybe other method are interesting to be mutated, but I think, a first set to start with is enough
Additional context
I will also create a PR with the proposal and link it with this Feature Request.
The text was updated successfully, but these errors were encountered: