"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HotTestMap = void 0;
const HotTestDestination_1 = require("./HotTestDestination");
/**
 * Maps the paths that are taken to complete a test.
 */
class HotTestMap {
    constructor(destinations = [], pages = {}, destinationOrder = []) {
        // Go through and convert any strings into HotTestDestinations.
        if (destinations instanceof Array) {
            this.destinations = [];
            for (let iIdx = 0; iIdx < destinations.length; iIdx++) {
                let dest = destinations[iIdx];
                this.destinations.push(new HotTestDestination_1.HotTestDestination(dest));
            }
        }
        else {
            this.destinations = {};
            for (let key in destinations) {
                let dest = destinations[key];
                this.destinations[key] = new HotTestDestination_1.HotTestDestination(dest);
            }
        }
        this.destinationOrder = destinationOrder;
        this.pages = pages;
    }
}
exports.HotTestMap = HotTestMap;
//# sourceMappingURL=HotTestMap.js.map