muteria.statistics.mutant_quality_indicators module¶
- muteria.statistics.mutant_quality_indicators.getFaultRevealingMutants(strong_mutant_kill_matrix_file, expected_program_output_file, program_output_file, threshold=1.0, selected_tests=None)[source]¶
This function compute the set of fault revealing mutants.
The inputs are: - mutant kill matrix file, - expected program output file, Used to see which test fails - obtained program output file, Used to see which test fails - threshold, in case a relaxed fault revealing is looked for - selected tests, in case part of the tests should be used
- Returns:
A pair is returned, with first element the set of fault revealing Mutants, and second element, a dict with key the mutants and values the fault revelation ratio (’# test kill and find fault’ divided (/) ‘# test that kill’) For equivalent mutants, the division isinvalid, we set the value to -1
- muteria.statistics.mutant_quality_indicators.getHardToKillMutants(mutant_kill_matrix_file, threshold=0.025, selected_tests=None)[source]¶
Return the pair of kill ratio and list of hard to kill mutant (kill by less than threshold proportion of test, 0 < threshold < 1 ).
- muteria.statistics.mutant_quality_indicators.getHardToPropagateMutants(strong_mutant_kill_matrix_file, weak_mutant_kill_matrix_file, threshold=0.1, selected_tests=None)[source]¶
Return the pair of propagation ratio and list of hard to propagate mutant (strongly killed by less than threshold proportion of test that weakly kill them, 0 < threshold < 1 ).
- muteria.statistics.mutant_quality_indicators.getSubsumingMutants(mutant_kill_matrix_file, clustered=True, selected_tests=None)[source]¶
Get the subsuming mutants from the matrix file
- Returns:
a tuple of (1) list of equivalent mutants (2) the list of tuple of subsuming mutant (Each tuple contain the mutants that are subsuming each others) or list of all subsuming mutants.