all files / src/ HandlebarsModel.js

100% Statements 14/14
100% Branches 4/4
100% Functions 2/2
100% Lines 14/14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20           
"use strict";
var HandlebarsModel = (function () {
    function HandlebarsModel(title, urlPrefix, relativeUrl, totalKilled, totalSurvived, totalUntested) {
        this.title = title;
        this.urlPrefix = urlPrefix;
        this.relativeUrl = relativeUrl;
        this.totalKilled = totalKilled;
        this.totalSurvived = totalSurvived;
        this.totalUntested = totalUntested;
        this.totalMutations = totalKilled + totalSurvived + totalUntested;
        this.totalCoveredMutations = totalKilled + totalSurvived;
        this.percentageBasedOnAllCode = Math.floor(totalKilled / this.totalMutations * 100) || 0,
            this.percentageBasedOnCoveredCode = Math.floor(totalKilled / this.totalCoveredMutations * 100) || 0;
    }
    ;
    return HandlebarsModel;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = HandlebarsModel;
//# sourceMappingURL=HandlebarsModel.js.map