How to use the handleInput function from coveralls

Find comprehensive JavaScript coveralls.handleInput code examples handpicked from public code repositorys.

237
238
239
240
241
242
243
244
    jscoverage.coverageDetail();
    /*var coverageStats = jscoverage.coverageStats();
    Object.keys(coverageStats).forEach(function(file) {
        test.equal(coverageStats[file].total, coverageStats[file].touched, 'All lines of code exercised by the tests');
    });*/
    if(process.env.TRAVIS) coveralls.handleInput(jscoverage.getLCOV());
    test.done();
};
fork icon0
star icon1
watch icon744

+ 19 other calls in file

262
263
264
265
266
267
268
269
            }
        }
        test.equal(total, touched, 'All lines of code exercised by the tests');
    });
    lcov += "end_of_record\n";
    if(process.env.TRAVIS) coveralls.handleInput(lcov);
    test.done();
};
fork icon1
star icon0
watch icon1

+ 19 other calls in file

112
113
114
115
116
117
118
119
120
121
catch (err) {
    throw new Error("Lcov file not found.");
}
const basePath = core.getInput('base-path');
const adjustedFile = basePath ? lcov_processor_1.adjustLcovBasePath(file, basePath) : file;
coveralls.handleInput(adjustedFile, (err, body) => {
    if (err) {
        core.setFailed(err);
    }
    else {
fork icon0
star icon0
watch icon1

+ 17 other calls in file