File / Directory |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Runtime errors |
# Transpile errors |
Total detected |
Total undetected |
Total mutants | |
---|---|---|---|---|---|---|---|---|---|---|---|
calculateScore.js | 100.00 | 4 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 |
/* This is a default multiplier whereby the score will be = (difficulty x multiplier)
i.e. using these multipliers will create challenges with the following scores:
* = 100
** = 250
*** = 450
**** = 700
***** = 1000
****** = 1350
*/
const multiplier = 0[][ 100, 125, 150, 175, 200, 225 ]
function calculateScore (difficulty) 1{
}{
return 2difficulty / multiplier[difficulty - 1]difficulty * multiplier[ 3difficulty + 1difficulty - 1 ]
}
module.exports = calculateScore
# | Mutator | State | Location | Original | Replacement |
---|---|---|---|---|---|
0 | ArrayDeclarator | Killed | 9 : 19 | [ ... ] |
[] |
1 | BlockStatement | Killed | 10 : 37 | {
... ]
} |
{
} |
2 | BinaryOperator | Killed | 11 : 9 | * ...- ] |
/ ... - ] |
3 | BinaryOperator | Killed | 11 : 34 | - |
+ |