Stryker

BlockStatementMutator.js - Stryker report

Summary

File
Mutation score
# Killed
# Survived
# Timeout
# No coverage
# Errors
Total detected
Total undetected
Total mutants
BlockStatementMutator.js
90%
9/10 9 1 0 0 0 9 1 10

Code

"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 (3456node.type === esprima_1.Syntax.BlockStatement && 78node.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