RelaxedImpl

Relaxed mutant IDs that are guaranteed to be unique for a while.

The position in the file can be reset make it possible to relocate a mutant inside a file.

The algorithm is a checksum of: * the content of all relevant tokens, e.g. all except comments * the token position before and after the mutant. * the original text * the mutated text

Constructors

this
this()
Undocumented in source.

Members

Functions

changeFile
void changeFile(Path fileName, Token[] tokens)
Undocumented in source. Be warned that the author may not have intended to support it.
make
CodeMutant make(Mutation m, const(ubyte)[] mut)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(Offset content, Offset mutant, Token[] tokens)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From MutantIdFactory

changeFile
void changeFile(Path fileName, Token[] tokens)

Change the current file.

update
void update(Offset content, Offset mutant, Token[] tokens)

Update the number of tokens that are before and after the mutant.

make
CodeMutant make(Mutation m, const(ubyte)[] mut)

Create a mutant at this mutation point. * * It is extremly important that the mutated text representation mut is * used and not the kind of mutation because there are many different * kinds of mutations that result in the same textual change. By using the * text and not kind as part of the checksum it results in a * deduplication/merge of mutants that actually are "the same".

Meta