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
1b583ce0
Commit
1b583ce0
authored
Nov 04, 2020
by
yann300
Committed by
Aniket
Nov 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix & add unit test
parent
62393c30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sourceLocationTracker.js
libs/remix-debug/test/sourceLocationTracker.js
+7
-2
No files found.
libs/remix-debug/test/sourceLocationTracker.js
View file @
1b583ce0
...
...
@@ -63,12 +63,17 @@ tape('SourceLocationTracker', function (t) {
st
.
equal
(
map
.
start
,
35
)
map
=
await
sourceLocationTracker
.
getSourceLocationFromVMTraceIndex
(
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
,
45
,
output
.
contracts
)
st
.
equal
(
map
.
file
,
1
)
st
.
equal
(
map
.
file
,
1
)
// 1 refers to the generated source (pragma experimental ABIEncoderV2)
map
=
await
sourceLocationTracker
.
getValidSourceLocationFromVMTraceIndex
(
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
,
45
,
output
.
contracts
)
st
.
equal
(
map
.
file
,
1
)
st
.
equal
(
map
.
file
,
1
)
// 1 refers to the generated source (pragma experimental ABIEncoderV2)
st
.
equal
(
map
.
start
,
1293
)
st
.
equal
(
map
.
length
,
32
)
map
=
await
sourceLocationTracker
.
getValidSourceLocationFromVMTraceIndex
(
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
,
36
,
output
.
contracts
)
st
.
equal
(
map
.
file
,
0
)
// 0 refers to the initial solidity code. see source below (ABIEncoderV2)
st
.
equal
(
map
.
start
,
303
)
st
.
equal
(
map
.
length
,
448
)
}
catch
(
e
)
{
console
.
log
(
e
)
}
...
...
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