Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
coveralls.convertLcovToCoveralls(input, options, function(err, postData) {
coveralls.sendToCoveralls(postData, function(err, response, body) {
log.info("uploading...");
send_to_coveralls(done, err, response, body);
});
});
});
coveralls.convertLcovToCoveralls(String(result), opts, function (err, postData) {
if (err) {
return callback(new Error('Unable to parse LCov coverage data: ' + err.message));
}
coveralls.sendToCoveralls(postData, function (err, response, body) {
if (err) {
return callback(new Error('Unable to send data to coveralls.io: ' + err.message));
}
if (response.statusCode >= 400) {
return callback(new Error('Bad response from coveralls.io: ' + response.statusCode + ' ' + body));
}
callback(null);
});
});
});