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
242a8f4f
Commit
242a8f4f
authored
Apr 04, 2017
by
Michael Fröwis
Committed by
chriseth
May 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Static Analysis: fixes after merge
parent
130f42fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
staticAnalysisCommon-test.js
test/staticanalysis/staticAnalysisCommon-test.js
+0
-25
No files found.
test/staticanalysis/staticAnalysisCommon-test.js
View file @
242a8f4f
...
@@ -5,8 +5,6 @@ var utils = require('../../src/app/utils')
...
@@ -5,8 +5,6 @@ var utils = require('../../src/app/utils')
// #################### helpers Test
// #################### helpers Test
// #################### helpers Test
test
(
'staticAnalysisCommon.helpers.buildFunctionSignature'
,
function
(
t
)
{
test
(
'staticAnalysisCommon.helpers.buildFunctionSignature'
,
function
(
t
)
{
t
.
plan
(
7
)
t
.
plan
(
7
)
...
@@ -1068,7 +1066,6 @@ test('staticAnalysisCommon.isInlineAssembly', function (t) {
...
@@ -1068,7 +1066,6 @@ test('staticAnalysisCommon.isInlineAssembly', function (t) {
// #################### Complex Node Identification
// #################### Complex Node Identification
<<<<<<<
c916b65ad0663d676ef59882cc7f19bff322aea9
test
(
'staticAnalysisCommon.isBuiltinFunctionCall'
,
function
(
t
)
{
test
(
'staticAnalysisCommon.isBuiltinFunctionCall'
,
function
(
t
)
{
t
.
plan
(
2
)
t
.
plan
(
2
)
var
selfdestruct
=
{
var
selfdestruct
=
{
...
@@ -1122,8 +1119,6 @@ test('staticAnalysisCommon.isBuiltinFunctionCall', function (t) {
...
@@ -1122,8 +1119,6 @@ test('staticAnalysisCommon.isBuiltinFunctionCall', function (t) {
t
.
notOk
(
common
.
isBuiltinFunctionCall
(
localCall
),
'local call is not builtin'
)
t
.
notOk
(
common
.
isBuiltinFunctionCall
(
localCall
),
'local call is not builtin'
)
})
})
=======
>>>>>>>
Static
Analysis
:
more
unit
tests
test
(
'staticAnalysisCommon.isStorageVariableDeclaration'
,
function
(
t
)
{
test
(
'staticAnalysisCommon.isStorageVariableDeclaration'
,
function
(
t
)
{
t
.
plan
(
3
)
t
.
plan
(
3
)
var
node1
=
{
var
node1
=
{
...
@@ -1580,34 +1575,17 @@ test('staticAnalysisCommon.isCallToNonConstLocalFunction', function (t) {
...
@@ -1580,34 +1575,17 @@ test('staticAnalysisCommon.isCallToNonConstLocalFunction', function (t) {
'type'
:
'function (struct Ballot.Voter storage pointer)'
,
'type'
:
'function (struct Ballot.Voter storage pointer)'
,
'value'
:
'bli'
'value'
:
'bli'
},
},
<<<<<<<
c916b65ad0663d676ef59882cc7f19bff322aea9
'name'
:
'Identifier'
'name'
:
'Identifier'
=======
'id'
:
37
,
'name'
:
'Identifier'
,
'src'
:
'540:3:0'
>>>>>>>
Static
Analysis
:
more
unit
tests
},
},
{
{
'attributes'
:
{
'attributes'
:
{
'type'
:
'struct Ballot.Voter storage pointer'
,
'type'
:
'struct Ballot.Voter storage pointer'
,
'value'
:
'x'
'value'
:
'x'
},
},
<<<<<<<
c916b65ad0663d676ef59882cc7f19bff322aea9
'name'
:
'Identifier'
'name'
:
'Identifier'
}
}
],
],
'name'
:
'FunctionCall'
'name'
:
'FunctionCall'
=======
'id'
:
38
,
'name'
:
'Identifier'
,
'src'
:
'544:1:0'
}
],
'id'
:
39
,
'name'
:
'FunctionCall'
,
'src'
:
'540:6:0'
>>>>>>>
Static
Analysis
:
more
unit
tests
}
}
t
.
ok
(
common
.
isCallToNonConstLocalFunction
(
node1
),
'should be call to non const Local func'
)
t
.
ok
(
common
.
isCallToNonConstLocalFunction
(
node1
),
'should be call to non const Local func'
)
...
@@ -1662,7 +1640,6 @@ test('staticAnalysisCommon.isBlockTimestampAccess', function (t) {
...
@@ -1662,7 +1640,6 @@ test('staticAnalysisCommon.isBlockTimestampAccess', function (t) {
t
.
notOk
(
common
.
isNowAccess
(
node
),
'is now used should not work'
)
t
.
notOk
(
common
.
isNowAccess
(
node
),
'is now used should not work'
)
})
})
<<<<<<<
c916b65ad0663d676ef59882cc7f19bff322aea9
test
(
'staticAnalysisCommon.isBlockBlockhashAccess'
,
function
(
t
)
{
test
(
'staticAnalysisCommon.isBlockBlockhashAccess'
,
function
(
t
)
{
t
.
plan
(
4
)
t
.
plan
(
4
)
var
node
=
{
var
node
=
{
...
@@ -1688,8 +1665,6 @@ test('staticAnalysisCommon.isBlockBlockhashAccess', function (t) {
...
@@ -1688,8 +1665,6 @@ test('staticAnalysisCommon.isBlockBlockhashAccess', function (t) {
t
.
notOk
(
common
.
isNowAccess
(
node
),
'is now used should not work'
)
t
.
notOk
(
common
.
isNowAccess
(
node
),
'is now used should not work'
)
})
})
=======
>>>>>>>
Static
Analysis
:
more
unit
tests
test
(
'staticAnalysisCommon.isThisLocalCall'
,
function
(
t
)
{
test
(
'staticAnalysisCommon.isThisLocalCall'
,
function
(
t
)
{
t
.
plan
(
3
)
t
.
plan
(
3
)
var
node
=
{
name
:
'MemberAccess'
,
children
:
[{
attributes
:
{
value
:
'this'
,
type
:
'contract test'
}}],
attributes
:
{
value
:
'b'
,
type
:
'function (bytes32,address) returns (bool)'
}
}
var
node
=
{
name
:
'MemberAccess'
,
children
:
[{
attributes
:
{
value
:
'this'
,
type
:
'contract test'
}}],
attributes
:
{
value
:
'b'
,
type
:
'function (bytes32,address) returns (bool)'
}
}
...
...
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