File |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Errors |
Total detected |
Total undetected |
Total mutants |
|
---|---|---|---|---|---|---|---|---|---|---|
BlockStatementMutator.js |
|
9/10 | 9 | 1 | 0 | 0 | 0 | 9 | 1 | 10 |
"use strict";
var esprima_1 = require('esprima');
/**
* Represents a mutator which can remove the content of a BlockStatement.
*/
var BlockStatementMutator = (function () 0{
}{
function BlockStatementMutator() 1{
}{
this.name = 'BlockStatement';
this.type = esprima_1.Syntax.BlockStatement;
}
BlockStatementMutator.prototype.applyMutations = function (node, copy) 2{
}{
if (3false4true5node.type === esprima_1.Syntax.BlockStatement || node.body.length > 06node.type !== esprima_1.Syntax.BlockStatementnode.type === esprima_1.Syntax.BlockStatement && 7node.body.length <= 08node.body.length >= 0node.body.length > 0) 9{
}{
var mutatedNode = copy(node);
mutatedNode.body = [];
return mutatedNode;
}
};
return BlockStatementMutator;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = BlockStatementMutator;
//# sourceMappingURL=BlockStatementMutator.js.map