Skip to content

Commit

Permalink
Add decoded locations to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuhs committed Jan 14, 2020
1 parent 9024bec commit ab1cad8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
12 changes: 12 additions & 0 deletions tests/testdata/detected-issues-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
"tail": "It is possible to trigger an exception (opcode 0xfe). Exceptions can be caused by type errors, division by zero, out-of-bounds array access, or assert violations. Note that explicit `assert()` should only be used to check invariants. Use `require()` for regular input checking."
},
"severity": "Low",
"decodedLocations": [
[
{
"column": 0,
"line": 1
},
{
"column": 23,
"line": 1
}
]
],
"locations": [
{
"sourceMap": "454:1:1",
Expand Down
34 changes: 18 additions & 16 deletions tests/testdata/detected-issues-sonar.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
[
{
"linterName": "mythx",
"forRule": "SWC-110",
"ruleType": "LOW",
"remediationEffortMinutes": 0,
"severity": "LOW",
"message": "It is possible to trigger an exception (opcode 0xfe). Exceptions can be caused by type errors, division by zero, out-of-bounds array access, or assert violations. Note that explicit `assert()` should only be used to check invariants. Use `require()` for regular input checking."
},
{
"linterName": "mythx",
"forRule": "",
"ruleType": "LOW",
"remediationEffortMinutes": 0,
"severity": "LOW",
"message": "Warning: Free mode only detects certain types of smart contract vulnerabilities. Your contract may still be unsafe. Upgrade to MythX Pro to unlock the ability to test for even more vulnerabilities, perform deeper security analysis, and more. https://mythx.io/plans"
}
{
"linterName": "mythx",
"forRule": "SWC-110",
"ruleType": "LOW",
"remediationEffortMinutes": 0,
"atLineNr": 1,
"onInputFile": "/home/spoons/diligence/mythx-qa/land/contracts/estate/EstateStorage.sol",
"severity": "LOW",
"message": "It is possible to trigger an exception (opcode 0xfe). Exceptions can be caused by type errors, division by zero, out-of-bounds array access, or assert violations. Note that explicit `assert()` should only be used to check invariants. Use `require()` for regular input checking."
},
{
"linterName": "mythx",
"forRule": "",
"ruleType": "LOW",
"remediationEffortMinutes": 0,
"severity": "LOW",
"message": "Warning: Free mode only detects certain types of smart contract vulnerabilities. Your contract may still be unsafe. Upgrade to MythX Pro to unlock the ability to test for even more vulnerabilities, perform deeper security analysis, and more. https://mythx.io/plans"
}
]

0 comments on commit ab1cad8

Please sign in to comment.