@ -13,7 +13,7 @@ const testFiles = [
'KingOfTheEtherThrone.sol' ,
'assembly.sol' ,
'ballot.sol' ,
// 'ballot_reentrant.sol',
'ballot_reentrant.sol' ,
// 'ballot_withoutWarnings.sol',
// 'cross_contract.sol',
// 'inheritance.sol',
@ -50,7 +50,7 @@ testFiles.forEach((fileName) => {
test ( 'Integration test thisLocal.js' , function ( t ) {
// console.log('testFileAsts---------',testFileAsts)
// t.plan(testFiles.length)
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/thisLocal' ) . default
@ -58,7 +58,7 @@ test('Integration test thisLocal.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 1,
'ballot_reentrant.sol' : 1 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -89,7 +89,7 @@ test('Integration test thisLocal.js', function (t) {
} )
test ( 'Integration test checksEffectsInteraction.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/checksEffectsInteraction' ) . default
@ -97,7 +97,7 @@ test('Integration test checksEffectsInteraction.js', function (t) {
'KingOfTheEtherThrone.sol' : 1 ,
'assembly.sol' : 1 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 1,
'ballot_reentrant.sol' : 1 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 1,
@ -128,7 +128,7 @@ test('Integration test checksEffectsInteraction.js', function (t) {
} )
test ( 'Integration test constantFunctions.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/constantFunctions' ) . default
@ -136,7 +136,7 @@ test('Integration test constantFunctions.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -167,7 +167,7 @@ test('Integration test constantFunctions.js', function (t) {
} )
test ( 'Integration test inlineAssembly.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/inlineAssembly' ) . default
@ -175,7 +175,7 @@ test('Integration test inlineAssembly.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 2 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -206,7 +206,7 @@ test('Integration test inlineAssembly.js', function (t) {
} )
test ( 'Integration test txOrigin.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/txOrigin' ) . default
@ -214,7 +214,7 @@ test('Integration test txOrigin.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 1 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -245,7 +245,7 @@ test('Integration test txOrigin.js', function (t) {
} )
test ( 'Integration test gasCosts.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/gasCosts' ) . default
@ -253,7 +253,7 @@ test('Integration test gasCosts.js', function (t) {
'KingOfTheEtherThrone.sol' : 2 ,
'assembly.sol' : 2 ,
'ballot.sol' : 3 ,
// 'ballot_reentrant.sol': 2,
'ballot_reentrant.sol' : 2 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 1,
// 'inheritance.sol': 1,
@ -284,7 +284,7 @@ test('Integration test gasCosts.js', function (t) {
} )
test ( 'Integration test similarVariableNames.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/similarVariableNames' ) . default
@ -292,7 +292,7 @@ test('Integration test similarVariableNames.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 2 ,
// 'ballot_reentrant.sol': 11,
'ballot_reentrant.sol' : 11 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -323,7 +323,7 @@ test('Integration test similarVariableNames.js', function (t) {
} )
test ( 'Integration test blockTimestamp.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/blockTimestamp' ) . default
@ -331,7 +331,7 @@ test('Integration test blockTimestamp.js', function (t) {
'KingOfTheEtherThrone.sol' : 1 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 3,
'ballot_reentrant.sol' : 3 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -362,7 +362,7 @@ test('Integration test blockTimestamp.js', function (t) {
} )
test ( 'Integration test lowLevelCalls.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/lowLevelCalls' ) . default
@ -370,7 +370,7 @@ test('Integration test lowLevelCalls.js', function (t) {
'KingOfTheEtherThrone.sol' : 1 ,
'assembly.sol' : 1 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 7,
'ballot_reentrant.sol' : 7 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 1,
// 'inheritance.sol': 1,
@ -401,7 +401,7 @@ test('Integration test lowLevelCalls.js', function (t) {
} )
test ( 'Integration test blockBlockhash.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/blockBlockhash' ) . default
@ -409,7 +409,7 @@ test('Integration test blockBlockhash.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -483,7 +483,7 @@ test('Integration test blockBlockhash.js', function (t) {
// */
test ( 'Integration test selfdestruct.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/selfdestruct' ) . default
@ -491,7 +491,7 @@ test('Integration test selfdestruct.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -522,7 +522,7 @@ test('Integration test selfdestruct.js', function (t) {
} )
test ( 'Integration test guardConditions.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/guardConditions' ) . default
@ -530,7 +530,7 @@ test('Integration test guardConditions.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 1 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -561,7 +561,7 @@ test('Integration test guardConditions.js', function (t) {
} )
test ( 'Integration test deleteDynamicArrays.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/deleteDynamicArrays' ) . default
@ -569,7 +569,7 @@ test('Integration test deleteDynamicArrays.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -600,7 +600,7 @@ test('Integration test deleteDynamicArrays.js', function (t) {
} )
test ( 'Integration test deleteFromDynamicArray.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/deleteFromDynamicArray' ) . default
@ -608,7 +608,7 @@ test('Integration test deleteFromDynamicArray.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -639,7 +639,7 @@ test('Integration test deleteFromDynamicArray.js', function (t) {
} )
test ( 'Integration test assignAndCompare.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/assignAndCompare' ) . default
@ -647,7 +647,7 @@ test('Integration test assignAndCompare.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -678,7 +678,7 @@ test('Integration test assignAndCompare.js', function (t) {
} )
test ( 'Integration test intDivisionTruncate.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/intDivisionTruncate' ) . default
@ -686,7 +686,7 @@ test('Integration test intDivisionTruncate.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -717,7 +717,7 @@ test('Integration test intDivisionTruncate.js', function (t) {
} )
test ( 'Integration test erc20Decimal.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/erc20Decimals' ) . default
@ -725,7 +725,7 @@ test('Integration test erc20Decimal.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -756,7 +756,7 @@ test('Integration test erc20Decimal.js', function (t) {
} )
test ( 'Integration test stringBytesLength.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/stringBytesLength' ) . default
@ -764,7 +764,7 @@ test('Integration test stringBytesLength.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -795,7 +795,7 @@ test('Integration test stringBytesLength.js', function (t) {
} )
test ( 'Integration test etherTransferInLoop.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/etherTransferInLoop' ) . default
@ -803,7 +803,7 @@ test('Integration test etherTransferInLoop.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 0 ,
// 'ballot_reentrant.sol': 0,
'ballot_reentrant.sol' : 0 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,
@ -834,7 +834,7 @@ test('Integration test etherTransferInLoop.js', function (t) {
} )
test ( 'Integration test forLoopIteratesOverDynamicArray.js' , function ( t ) {
t . plan ( 3 )
t . plan ( 4 )
var module = require ( '../../dist/src/solidity-analyzer/modules/forLoopIteratesOverDynamicArray' ) . default
@ -842,7 +842,7 @@ test('Integration test forLoopIteratesOverDynamicArray.js', function (t) {
'KingOfTheEtherThrone.sol' : 0 ,
'assembly.sol' : 0 ,
'ballot.sol' : 2 ,
// 'ballot_reentrant.sol': 1,
'ballot_reentrant.sol' : 1 ,
// 'ballot_withoutWarnings.sol': 0,
// 'cross_contract.sol': 0,
// 'inheritance.sol': 0,