regenareted tests expected json output

pull/67/head
Alexander Remie 6 years ago
parent 11132a628e
commit 0b7f0c47fb
  1. 20
      tests/expected_json/external_function.external-function.json
  2. 66
      tests/expected_json/naming_convention.naming-convention.json
  3. 8
      tests/expected_json/pragma.0.4.24.pragma.json
  4. 40
      tests/expected_json/uninitialized.uninitialized-state.json

@ -11,35 +11,35 @@
"vuln": "ExternalFunc" "vuln": "ExternalFunc"
}, },
{ {
"contract": "ContractWithFunctionNotCalled", "contract": "ContractWithFunctionNotCalled2",
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"func": "funcNotCalled2", "func": "funcNotCalled",
"sourceMapping": { "sourceMapping": {
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"length": 41, "length": 304,
"start": 304 "start": 552
}, },
"vuln": "ExternalFunc" "vuln": "ExternalFunc"
}, },
{ {
"contract": "ContractWithFunctionNotCalled", "contract": "ContractWithFunctionNotCalled",
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"func": "funcNotCalled3", "func": "funcNotCalled2",
"sourceMapping": { "sourceMapping": {
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"length": 41, "length": 41,
"start": 257 "start": 304
}, },
"vuln": "ExternalFunc" "vuln": "ExternalFunc"
}, },
{ {
"contract": "ContractWithFunctionNotCalled2", "contract": "ContractWithFunctionNotCalled",
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"func": "funcNotCalled", "func": "funcNotCalled3",
"sourceMapping": { "sourceMapping": {
"filename": "tests/external_function.sol", "filename": "tests/external_function.sol",
"length": 304, "length": 41,
"start": 552 "start": 257
}, },
"vuln": "ExternalFunc" "vuln": "ExternalFunc"
} }

@ -1,4 +1,15 @@
[ [
{
"constant": "l",
"contract": "T",
"filename": "tests/naming_convention.sol",
"sourceMapping": {
"filename": "tests/naming_convention.sol",
"length": 10,
"start": 847
},
"vuln": "NamingConvention"
},
{ {
"contract": "T", "contract": "T",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
@ -20,13 +31,6 @@
}, },
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{
"contract": "naming",
"event": "event_",
"filename": "tests/naming_convention.sol",
"sourceMapping": null,
"vuln": "NamingConvention"
},
{ {
"contract": "naming", "contract": "naming",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
@ -39,69 +43,58 @@
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
"constant": "MY_other_CONSTANT",
"contract": "naming", "contract": "naming",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"sourceMapping": { "sourceMapping": {
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"length": 16, "length": 35,
"start": 183 "start": 141
}, },
"variable": "Var_One",
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
"contract": "naming", "contract": "naming",
"enum": "numbers",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"sourceMapping": { "sourceMapping": {
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"length": 23, "length": 16,
"start": 77 "start": 183
}, },
"variable": "Var_One",
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
"contract": "naming", "contract": "naming",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"function": "GetOne",
"sourceMapping": { "sourceMapping": {
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"length": 20, "length": 71,
"start": 227 "start": 405
}, },
"struct": "test",
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
"constant": "MY_other_CONSTANT",
"contract": "naming", "contract": "naming",
"enum": "numbers",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"sourceMapping": { "sourceMapping": {
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"length": 35, "length": 23,
"start": 141 "start": 77
},
"vuln": "NamingConvention"
},
{
"constant": "l",
"contract": "T",
"filename": "tests/naming_convention.sol",
"sourceMapping": {
"filename": "tests/naming_convention.sol",
"length": 10,
"start": 847
}, },
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
"contract": "naming", "contract": "naming",
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"function": "GetOne",
"sourceMapping": { "sourceMapping": {
"filename": "tests/naming_convention.sol", "filename": "tests/naming_convention.sol",
"length": 71, "length": 20,
"start": 405 "start": 227
}, },
"struct": "test",
"vuln": "NamingConvention" "vuln": "NamingConvention"
}, },
{ {
@ -127,5 +120,12 @@
"start": 748 "start": 748
}, },
"vuln": "NamingConvention" "vuln": "NamingConvention"
},
{
"contract": "naming",
"event": "event_",
"filename": "tests/naming_convention.sol",
"sourceMapping": null,
"vuln": "NamingConvention"
} }
] ]

@ -2,13 +2,13 @@
{ {
"sourceMapping": [ "sourceMapping": [
{ {
"filename": "tests/pragma.0.4.24.sol", "filename": "tests/pragma.0.4.23.sol",
"length": 23, "length": 24,
"start": 0 "start": 0
}, },
{ {
"filename": "tests/pragma.0.4.23.sol", "filename": "tests/pragma.0.4.24.sol",
"length": 24, "length": 23,
"start": 0 "start": 0
} }
], ],

@ -21,66 +21,66 @@
"vuln": "UninitializedStateVars" "vuln": "UninitializedStateVars"
}, },
{ {
"contract": "Uninitialized", "contract": "Test2",
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"functions": [ "functions": [
"transfer" "use"
], ],
"sourceMapping": [ "sourceMapping": [
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 19, "length": 15,
"start": 55 "start": 695
}, },
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 82, "length": 117,
"start": 81 "start": 875
} }
], ],
"variable": "destination", "variable": "st",
"vuln": "UninitializedStateVars" "vuln": "UninitializedStateVars"
}, },
{ {
"contract": "Test2", "contract": "Test2",
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"functions": [ "functions": [
"use" "init"
], ],
"sourceMapping": [ "sourceMapping": [
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 15, "length": 6,
"start": 695 "start": 748
}, },
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 117, "length": 52,
"start": 875 "start": 817
} }
], ],
"variable": "st", "variable": "v",
"vuln": "UninitializedStateVars" "vuln": "UninitializedStateVars"
}, },
{ {
"contract": "Test2", "contract": "Uninitialized",
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"functions": [ "functions": [
"init" "transfer"
], ],
"sourceMapping": [ "sourceMapping": [
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 6, "length": 19,
"start": 748 "start": 55
}, },
{ {
"filename": "tests/uninitialized.sol", "filename": "tests/uninitialized.sol",
"length": 52, "length": 82,
"start": 817 "start": 81
} }
], ],
"variable": "v", "variable": "destination",
"vuln": "UninitializedStateVars" "vuln": "UninitializedStateVars"
} }
] ]
Loading…
Cancel
Save