Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
194c59a3
Commit
194c59a3
authored
Apr 10, 2017
by
Michael Fröwis
Committed by
chriseth
May 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Static Analysis: us solc/wrapper
parent
dc7dc119
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
staticAnalysisIntegration-test.js
test/staticanalysis/staticAnalysisIntegration-test.js
+3
-2
No files found.
test/staticanalysis/staticAnalysisIntegration-test.js
View file @
194c59a3
...
...
@@ -3,7 +3,8 @@ var test = require('tape')
var
StatRunner
=
require
(
'../../src/app/staticanalysis/staticAnalysisRunner'
)
// const util = require('util')
var
solc
=
require
(
'solc'
)
var
solc
=
require
(
'solc/wrapper'
)
var
compiler
=
solc
(
require
(
'../../soljson'
))
var
fs
=
require
(
'fs'
)
var
path
=
require
(
'path'
)
...
...
@@ -29,7 +30,7 @@ var testFileAsts = {}
testFiles
.
forEach
((
fileName
)
=>
{
var
contents
=
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'test-contracts'
,
fileName
),
'utf8'
)
testFileAsts
[
fileName
]
=
solc
.
compile
(
contents
,
0
)
testFileAsts
[
fileName
]
=
compiler
.
compile
(
contents
,
0
)
})
test
(
'Integration test thisLocal.js'
,
function
(
t
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment