-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
c/featureCategory: An issue or PR related to a new featureCategory: An issue or PR related to a new feature
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
c/featureCategory: An issue or PR related to a new featureCategory: An issue or PR related to a new feature