Code coverage report for src/node-groups/DebugProtectionNodesGroup.js

# All files / src/node-groups DebugProtectionNodesGroup.js

50% Statements 6/12
33.33% Branches 1/3
0% Functions 0/1
50% Lines 6/12

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    1x
    1x
    1x
    1x
    1x

    1x
     "use strict";
    const DebugProtectionFunctionCallNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionCallNode");
    const DebugProtectionFunctionIntervalNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionIntervalNode");
    const DebugProtectionFunctionNode_1 = require("../custom-nodes/debug-protection-nodes/DebugProtectionFunctionNode");
    const NodesGroup_1 = require('./NodesGroup');
    const Utils_1 = require('../Utils');
    class DebugProtectionNodesGroup extends NodesGroup_1.NodesGroup {
        constructor(options) {
            super(options);
            this.debugProtectionFunctionIdentifier = Utils_1.Utils.getRandomVariableName();
            this.nodes.set('debugProtectionFunctionNode', new DebugProtectionFunctionNode_1.DebugProtectionFunctionNode(this.debugProtectionFunctionIdentifier, this.options));
            this.nodes.set('debugProtectionFunctionCallNode', new DebugProtectionFunctionCallNode_1.DebugProtectionFunctionCallNode(this.debugProtectionFunctionIdentifier, this.options));
            if (this.options.get('debugProtectionInterval')) {
                this.nodes.set('debugProtectionFunctionIntervalNode', new DebugProtectionFunctionIntervalNode_1.DebugProtectionFunctionIntervalNode(this.debugProtectionFunctionIdentifier, this.options));
            }
        }
    }
    exports.DebugProtectionNodesGroup = DebugProtectionNodesGroup;
    //# sourceMappingURL=DebugProtectionNodesGroup.js.map