cmatrix.create_mutants¶
- cmatrix.create_mutants()¶
Create the ‘mutants lists’ from the original one.
Two mode are avaible :
Mutants created from the begin
Mutants created from the end
Parameters
type
Description
liste
list
The original liste to generate mutants
mode
int
The mode define the way to generate mutants :
0 => The mutants lists are cutted since the begining
1 => The mutants lists are cutted since the end
- Returns
- list list
A list of list containing all the mutants generated
Examples
>>> l=[1,2,3,4,5,6,7] >>> create_mutants(l) [[2, 3, 4, 5, 6, 7], [3, 4, 5, 6, 7], [4, 5, 6, 7], [5, 6, 7], [6, 7], [7]]