make/coverage.js
function (fileName) {
        var result = new _File(fileName),
            fileData = this._data[fileName];
        [{
            type: "statements",
            data: "s",
            map: "statementMap"
        }, {
            type: "functions",
            data: "f",
            map: "fnMap"
        }, {
            type: "branches",
            data: "b",
            map: "branchMap"
        }].forEach(function (part) {
            var map = fileData[part.map],
                data = fileData[part.data],
                statistics = result[part.type],
                index = 1;
            while (undefined !== data[index]) {
                statistics.processCoverage(data[index], map[index]);
                ++index;
            }
        });
        return result;
    }
function (fileName) {
        var result = new _File(fileName),
            fileData = this._data[fileName];
        [{
            type: "statements",
            data: "s",
            map: "statementMap"
        }, {
            type: "functions",
            data: "f",
            map: "fnMap"
        }, {
            type: "branches",
            data: "b",
            map: "branchMap"
        }].forEach(function (part) {
            var map = fileData[part.map],
                data = fileData[part.data],
                statistics = result[part.type],
                index = 1;
            while (undefined !== data[index]) {
                statistics.processCoverage(data[index], map[index]);
                ++index;
            }
        });
        return result;
    }
function ( fileName ) { var result = new _File ( fileName ) , fileData = this . _data [ fileName ] ; [ { type : "statements" , data : "s" , map : "statementMap" } , { type : "functions" , data : "f" , map : "fnMap" } , { type : "branches" , data : "b" , map : "branchMap" } ] . forEach ( function ( part ) { var map = fileData [ part . map ] , data = fileData [ part . data ] , statistics = result [ part . type ] , index = 1 ; while ( undefined !== data [ index ] ) { statistics . processCoverage ( data [ index ] , map [ index ] ) ; ++ index ; } } ) ; return result ; }
Compute coverage for one file

@param {String} fileName File name
@return {CoverageReport.File} Coverage for one file
Compute coverage for one file