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

New mutation operator: ABS(Absolute Value Mutator) #852

Open
ligurio opened this issue Apr 13, 2021 · 1 comment
Open

New mutation operator: ABS(Absolute Value Mutator) #852

ligurio opened this issue Apr 13, 2021 · 1 comment

Comments

@ligurio
Copy link
Contributor

ligurio commented Apr 13, 2021

The worst performing mutator was ABS(Absolute Value Mutator) that would replace an expression with ±abs(expression), for example: absl::Minutes(10) - elapsed; --> absl::Minutes(-abs(10)) - elapsed;

Googler described an interesting mutation operator in his article about mutation testing in Google.
https://testing.googleblog.com/2021/04/mutation-testing.html

@AlexDenisov
Copy link
Member

AlexDenisov commented Apr 21, 2021

Just for reference, we have cxx_minus_to_noop that removes unary minus.
I see a value in the ABS operator, but I cannot give any ETA when (and if) it will be implemented.

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

No branches or pull requests

2 participants