benhartley/mutant

View on GitHub
src/lib/mutation-plugin.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = Object.create({
    n: 0,
    shouldMutate(stateMask) {
        return stateMask.substr(this.n, 1) === '1';
    },
    increaseNodeCount() {
        this.n += 1;
        return console.log(`Node count: ${this.n}`);
    }
});