Comment out conditional code (for coveralls)

pull/215/head
cgewecke 7 years ago
parent a9b575d470
commit 339b881e71
  1. 5
      lib/instrumenter.js

@ -52,7 +52,8 @@ instrumenter.instrumentConditionalExpression = function instrumentConditionalExp
// Very sad, this is the coolest thing in here. // Very sad, this is the coolest thing in here.
return; return;
// ---------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------
contract.branchId += 1;
/*contract.branchId += 1;
const startline = (contract.instrumented.slice(0, expression.start).match(/\n/g) || []).length + 1; const startline = (contract.instrumented.slice(0, expression.start).match(/\n/g) || []).length + 1;
const startcol = expression.start - contract.instrumented.slice(0, expression.start).lastIndexOf('\n') - 1; const startcol = expression.start - contract.instrumented.slice(0, expression.start).lastIndexOf('\n') - 1;
@ -107,7 +108,7 @@ instrumenter.instrumentConditionalExpression = function instrumentConditionalExp
}); });
createOrAppendInjectionPoint(contract, expression.alternate.end, { createOrAppendInjectionPoint(contract, expression.alternate.end, {
type: 'closeParen', type: 'closeParen',
}); });*/
}; };
instrumenter.instrumentStatement = function instrumentStatement(contract, expression) { instrumenter.instrumentStatement = function instrumentStatement(contract, expression) {

Loading…
Cancel
Save