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
1f41096a
Unverified
Commit
1f41096a
authored
Jun 03, 2020
by
yann300
Committed by
GitHub
Jun 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1494 from ethereum/noReturn
noReturn tests for analyzer
parents
979db851
19f979e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
staticAnalysisIntegration-test-0.5.0.ts
...zer/test/analysis/staticAnalysisIntegration-test-0.5.0.ts
+36
-0
No files found.
remix-analyzer/test/analysis/staticAnalysisIntegration-test-0.5.0.ts
View file @
1f41096a
...
@@ -407,6 +407,42 @@ test('Integration test blockBlockhash module', function (t: test.Test) {
...
@@ -407,6 +407,42 @@ test('Integration test blockBlockhash module', function (t: test.Test) {
})
})
})
})
test
(
'Integration test noReturn module'
,
function
(
t
:
test
.
Test
)
{
t
.
plan
(
testFiles
.
length
)
const
module
=
modules
.
noReturn
const
lengthCheck
=
{
'KingOfTheEtherThrone.sol'
:
0
,
'assembly.sol'
:
1
,
'ballot.sol'
:
0
,
'ballot_reentrant.sol'
:
0
,
'ballot_withoutWarnings.sol'
:
0
,
'cross_contract.sol'
:
0
,
'inheritance.sol'
:
0
,
'modifier1.sol'
:
0
,
'modifier2.sol'
:
0
,
'notReentrant.sol'
:
0
,
'structReentrant.sol'
:
0
,
'thisLocal.sol'
:
1
,
'globals.sol'
:
0
,
'library.sol'
:
0
,
'transfer.sol'
:
0
,
'ctor.sol'
:
0
,
'forgottenReturn.sol'
:
1
,
'selfdestruct.sol'
:
0
,
'deleteDynamicArray.sol'
:
0
,
'deleteFromDynamicArray.sol'
:
0
,
'blockLevelCompare.sol'
:
0
,
'intDivisionTruncate.sol'
:
0
,
'ERC20.sol'
:
0
,
'stringBytesLength.sol'
:
0
,
'etherTransferInLoop.sol'
:
0
,
'forLoopIteratesOverDynamicArray.sol'
:
0
}
runModuleOnFiles
(
module
,
t
,
(
file
:
string
,
report
:
AnalysisReportObj
[])
=>
{
t
.
equal
(
report
.
length
,
lengthCheck
[
file
],
`
${
file
}
has right amount of noReturn warnings`
)
})
})
test
(
'Integration test selfdestruct module'
,
function
(
t
:
test
.
Test
)
{
test
(
'Integration test selfdestruct module'
,
function
(
t
:
test
.
Test
)
{
t
.
plan
(
testFiles
.
length
)
t
.
plan
(
testFiles
.
length
)
const
module
:
any
=
modules
.
selfdestruct
const
module
:
any
=
modules
.
selfdestruct
...
...
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