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

Allow operator names in mutant ranges #126

Open
MattWindsor91 opened this issue Feb 2, 2021 · 0 comments
Open

Allow operator names in mutant ranges #126

MattWindsor91 opened this issue Feb 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@MattWindsor91
Copy link
Collaborator

In the mutation experiments I've been doing, it's common for mutants to be grouped into multiple invocations of a named mutant operator. Right now, mutants are always just raw IDs that are indices into the compilers' mutation table, but things would be a little easier on the data analysis style if we could assign systematic mutant names over those IDs.

A nice approach would be to assign an operator name to ranges, like so:

[[machines.foo.mutation.auto.ranges]]
  operator = "FA" # flip isAtLeastOrStrongerThan
  start    = 50
  end      = 99

This would then systematically name mutant 50 as FA1, mutant 51 as FA2, and so on to FA49 in all user-facing output (though 50, 51, etc would still be passed to the compiler).

This would necessitate a change to the Mutant type, either to be an index into a table, or to be something like

type Mutant struct {
  Name string
  ID   int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant