Skip to content
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

Enhancement: Yield more mutations #636

Closed
wants to merge 1 commit into from

Conversation

localheinz
Copy link
Member

@localheinz localheinz commented Feb 16, 2019

This PR

  • yields more mutants from UnwrapArray* mutators

πŸ’β€β™‚οΈ I'm unsure where to draw the line, although I remember that we briefly discussed this in previous PRs. Maybe worth taking a look? Maybe it would also make sense to start configuring levels? Also take a look at #597.

Copy link
Member

@maks-rafalko maks-rafalko left a comment

Choose a reason for hiding this comment

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

array_diff($a, $b); -> $a;, $b; seems like a good idea at first, but it is not hard to notice that only a very lousy test will notice$bs instead of $as because array_diff is supposed to return everything but elements of $b.

Otherwise put, these two mutations are equivalent. If you have a test against mutation $a, it'll surely catch mutation $b. That's why I decided against both when editing #514.

Originally posted by @sanmai in #544 (comment)


^ This is why we decided to have only one mutation for array_*diff* functions. I think we shouldn't change anything for them.

@maks-rafalko
Copy link
Member

For the latest 2 PRs we changed 1 to N mutations because they were array_*intersect* functions:

which is totally makes sense

Copy link
Member

@sanmai sanmai left a comment

Choose a reason for hiding this comment

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

I don't think these mutations are a very great idea, but not exactly bad one. There could be some merit I haven't yet found. So it'll be best if these extra mutations would not be enabled by default.

@maks-rafalko
Copy link
Member

maks-rafalko commented Mar 30, 2019

Let's make a decision about this one, to not keep it open without any activity.

I'm πŸ‘Ž on adding multiple mutations by default (current state of PR) since it produces too many mutants that will likely be killed.

I'm πŸ‘ on adding it by demand (enabling explicitly in settings).

I'm also πŸ‘ to just close it and keep the number of mutations balanced.

what do you think?

@maks-rafalko
Copy link
Member

Ok, closing for now. Feel free to reopen / continue discussion

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.

None yet

3 participants