Code coverage report for src/node-groups/NodesGroup.ts

# All files / src/node-groups NodesGroup.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

    1x

    160x

    160x

    160x

     import { ICustomNode } from '../interfaces/custom-nodes/ICustomNode';

    import { INodesGroup } from '../interfaces/INodesGroup';
    import { IOptions } from "../interfaces/IOptions";

    export abstract class NodesGroup implements INodesGroup {
        /**
         * @type {Map<string, Node>}
         */
        protected nodes: Map <string, ICustomNode> = new Map <string, ICustomNode> ();

        /**
         * @type {IOptions}
         */
        protected options: IOptions;

        constructor (options: IOptions) {
            this.options = options;
        }

        /**
         * @returns {Map<string, INode>}
         */
        public getNodes (): Map <string, ICustomNode> {
            return this.nodes;
        }
    }