all files / src/ HandlebarsModel.js

100% Statements 19/19
100% Branches 4/4
100% Functions 2/2
100% Lines 19/19
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        56× 56× 56× 56× 56× 56× 56× 56× 56× 56× 56× 56× 56× 56×        
"use strict";
/**
 * Represents a handlebars result context
 */
var HandlebarsModel = (function () {
    function HandlebarsModel(title, urlPrefix, relativeUrl, totalKilled, totalTimedOut, totalSurvived, totalNoCoverage, totalErrors) {
        this.title = title;
        this.urlPrefix = urlPrefix;
        this.relativeUrl = relativeUrl;
        this.totalKilled = totalKilled;
        this.totalTimedOut = totalTimedOut;
        this.totalSurvived = totalSurvived;
        this.totalNoCoverage = totalNoCoverage;
        this.totalErrors = totalErrors;
        this.totalUndetected = totalSurvived + totalNoCoverage;
        this.totalDetected = totalKilled + totalTimedOut;
        this.totalMutations = this.totalDetected + this.totalUndetected;
        this.totalCoveredMutations = this.totalDetected + totalSurvived;
        this.percentageBasedOnAllCode = Math.floor(this.totalDetected / this.totalMutations * 100) || 0;
        this.percentageBasedOnCoveredCode = Math.floor(this.totalDetected / this.totalCoveredMutations * 100) || 0;
    }
    ;
    return HandlebarsModel;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = HandlebarsModel;
//# sourceMappingURL=HandlebarsModel.js.map