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

Implement possibility to disable mutants via comments #180

Open
k3rn31 opened this issue Oct 2, 2022 · 0 comments
Open

Implement possibility to disable mutants via comments #180

k3rn31 opened this issue Oct 2, 2022 · 0 comments
Labels
c/feature Category: An issue or PR related to a new feature
Milestone

Comments

@k3rn31
Copy link
Member

k3rn31 commented Oct 2, 2022

It would be useful to disable specific mutations via comments.

Proposal

The comment should have the format:

//nomutant

or

//nomutant:mutation1,mutation2,...,mutationN

For example:

To exclude all mutation from specific expression:

a := b + c //nomutant

To exclude specific mutation from specific expression:

a := b + c //nomutant:arithmetic-base,invert-bitwise

To exclude mutations from block:

//nomutant
func myFunc() {
  a := b + c
}

To exclude mutations from file:

//nomutant
package apackage
@k3rn31 k3rn31 added the c/feature Category: An issue or PR related to a new feature label Oct 2, 2022
@k3rn31 k3rn31 added this to the v0.6.0 milestone Oct 2, 2022
@k3rn31 k3rn31 modified the milestones: v0.6.0, v0.7.0 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/feature Category: An issue or PR related to a new feature
Projects
None yet
Development

No branches or pull requests

1 participant