Commit b2a5eafa authored by Michael Fröwis's avatar Michael Fröwis Committed by chriseth

Static Analysis: fix integration tests

parent 242a8f4f
...@@ -33,7 +33,7 @@ testFiles.forEach((fileName) => { ...@@ -33,7 +33,7 @@ testFiles.forEach((fileName) => {
test('Integration test thisLocal.js', function (t) { test('Integration test thisLocal.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/thisLocal') var module = require('../../src/app/staticanalysis/modules/thisLocal')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 0, 'KingOfTheEtherThrone.sol': 0,
...@@ -58,7 +58,7 @@ test('Integration test thisLocal.js', function (t) { ...@@ -58,7 +58,7 @@ test('Integration test thisLocal.js', function (t) {
test('Integration test checksEffectsInteraction.js', function (t) { test('Integration test checksEffectsInteraction.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/checksEffectsInteraction') var module = require('../../src/app/staticanalysis/modules/checksEffectsInteraction')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 1, 'KingOfTheEtherThrone.sol': 1,
...@@ -68,8 +68,8 @@ test('Integration test checksEffectsInteraction.js', function (t) { ...@@ -68,8 +68,8 @@ test('Integration test checksEffectsInteraction.js', function (t) {
'ballot_withoutWarnings.sol': 0, 'ballot_withoutWarnings.sol': 0,
'cross_contract.sol': 0, 'cross_contract.sol': 0,
'inheritance.sol': 1, 'inheritance.sol': 1,
'modifier1.sol': 0, 'modifier1.sol': 1,
'modifier2.sol': 0, 'modifier2.sol': 1,
'notReentrant.sol': 0, 'notReentrant.sol': 0,
'structReentrant.sol': 1, 'structReentrant.sol': 1,
'thisLocal.sol': 0 'thisLocal.sol': 0
...@@ -83,7 +83,7 @@ test('Integration test checksEffectsInteraction.js', function (t) { ...@@ -83,7 +83,7 @@ test('Integration test checksEffectsInteraction.js', function (t) {
test('Integration test constatnFunctions.js', function (t) { test('Integration test constatnFunctions.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/constantFunctions') var module = require('../../src/app/staticanalysis/modules/constantFunctions')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 0, 'KingOfTheEtherThrone.sol': 0,
...@@ -93,8 +93,8 @@ test('Integration test constatnFunctions.js', function (t) { ...@@ -93,8 +93,8 @@ test('Integration test constatnFunctions.js', function (t) {
'ballot_withoutWarnings.sol': 0, 'ballot_withoutWarnings.sol': 0,
'cross_contract.sol': 1, 'cross_contract.sol': 1,
'inheritance.sol': 0, 'inheritance.sol': 0,
'modifier1.sol': 1, 'modifier1.sol': 2,
'modifier2.sol': 0, 'modifier2.sol': 1,
'notReentrant.sol': 0, 'notReentrant.sol': 0,
'structReentrant.sol': 0, 'structReentrant.sol': 0,
'thisLocal.sol': 1 'thisLocal.sol': 1
...@@ -108,7 +108,7 @@ test('Integration test constatnFunctions.js', function (t) { ...@@ -108,7 +108,7 @@ test('Integration test constatnFunctions.js', function (t) {
test('Integration test constantFunctions.js', function (t) { test('Integration test constantFunctions.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/inlineAssembly') var module = require('../../src/app/staticanalysis/modules/inlineAssembly')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 0, 'KingOfTheEtherThrone.sol': 0,
...@@ -133,7 +133,7 @@ test('Integration test constantFunctions.js', function (t) { ...@@ -133,7 +133,7 @@ test('Integration test constantFunctions.js', function (t) {
test('Integration test txOrigin.js', function (t) { test('Integration test txOrigin.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/txOrigin') var module = require('../../src/app/staticanalysis/modules/txOrigin')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 0, 'KingOfTheEtherThrone.sol': 0,
...@@ -158,7 +158,7 @@ test('Integration test txOrigin.js', function (t) { ...@@ -158,7 +158,7 @@ test('Integration test txOrigin.js', function (t) {
test('Integration test gasCosts.js', function (t) { test('Integration test gasCosts.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../babelify-src/app/staticanalysis/modules/gasCosts') var module = require('../../src/app/staticanalysis/modules/gasCosts')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 2, 'KingOfTheEtherThrone.sol': 2,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment