Modify the tests to include the function selector

This commit is contained in:
Gaith Hallak 2019-12-09 03:26:48 +03:00
parent 371e6a4801
commit 0396bc7beb
44 changed files with 58 additions and 1 deletions

View File

@ -123,6 +123,7 @@ JSON AST:
"attributes":
{
"documentation": null,
"functionSelector": "af11c34c",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -1 +1 @@
{"sources":{"A":{"ast":{"absolutePath":"A","exportedSymbols":{"C":[6]},"id":7,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity",">=","0.0"],"nodeType":"PragmaDirective","src":"0:22:0"},{"abstract":false,"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":6,"linearizedBaseContracts":[6],"name":"C","nodeType":"ContractDefinition","nodes":[{"body":{"id":4,"nodeType":"Block","src":"61:2:0","statements":[]},"documentation":null,"id":5,"implemented":true,"kind":"function","modifiers":[],"name":"f","nodeType":"FunctionDefinition","overrides":null,"parameters":{"id":2,"nodeType":"ParameterList","parameters":[],"src":"46:2:0"},"returnParameters":{"id":3,"nodeType":"ParameterList","parameters":[],"src":"61:0:0"},"scope":6,"src":"36:27:0","stateMutability":"pure","virtual":false,"visibility":"public"}],"scope":7,"src":"23:42:0"}],"src":"0:65:0"},"id":0}}}
{"sources":{"A":{"ast":{"absolutePath":"A","exportedSymbols":{"C":[6]},"id":7,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity",">=","0.0"],"nodeType":"PragmaDirective","src":"0:22:0"},{"abstract":false,"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":6,"linearizedBaseContracts":[6],"name":"C","nodeType":"ContractDefinition","nodes":[{"body":{"id":4,"nodeType":"Block","src":"61:2:0","statements":[]},"documentation":null,"functionSelector":"26121ff0","id":5,"implemented":true,"kind":"function","modifiers":[],"name":"f","nodeType":"FunctionDefinition","overrides":null,"parameters":{"id":2,"nodeType":"ParameterList","parameters":[],"src":"46:2:0"},"returnParameters":{"id":3,"nodeType":"ParameterList","parameters":[],"src":"61:0:0"},"scope":6,"src":"36:27:0","stateMutability":"pure","virtual":false,"visibility":"public"}],"scope":7,"src":"23:42:0"}],"src":"0:65:0"},"id":0}}}

View File

@ -29,6 +29,7 @@
[
{
"constant": false,
"functionSelector": "97682884",
"id": 4,
"name": "m",
"nodeType": "VariableDeclaration",
@ -489,6 +490,7 @@
]
},
"documentation": null,
"functionSelector": "fc68521a",
"id": 38,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"constant": false,
"functionSelector": "97682884",
"name": "m",
"overrides": null,
"scope": 39,
@ -93,6 +94,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "fc68521a",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -132,6 +132,7 @@
]
},
"documentation": null,
"functionSelector": "b582ec5f",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "b582ec5f",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -119,6 +119,7 @@
]
},
"documentation": null,
"functionSelector": "b8c9d365",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "b8c9d365",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -69,6 +69,7 @@
]
},
"documentation": null,
"functionSelector": "ece866b9",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "ece866b9",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -132,6 +132,7 @@
]
},
"documentation": null,
"functionSelector": "e2179b8e",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "e2179b8e",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -200,6 +200,7 @@
]
},
"documentation": null,
"functionSelector": "ffae15ba",
"id": 10,
"implemented": true,
"kind": "function",

View File

@ -117,6 +117,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "ffae15ba",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -73,6 +73,7 @@
]
},
"documentation": null,
"functionSelector": "5a2ee019",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "5a2ee019",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -165,6 +165,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 5,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -124,6 +124,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 8,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -150,6 +150,7 @@
"statements": []
},
"documentation": "Some comment on fn.",
"functionSelector": "a4a2c40b",
"id": 14,
"implemented": true,
"kind": "function",

View File

@ -109,6 +109,7 @@
"attributes":
{
"documentation": "Some comment on fn.",
"functionSelector": "a4a2c40b",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -36,6 +36,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "d6cd4974",
"id": 16,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "d6cd4974",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -142,6 +142,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 10,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -149,6 +149,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 14,
"implemented": true,
"kind": "function",

View File

@ -83,6 +83,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -99,6 +99,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "28811f59",
"id": 13,
"implemented": true,
"kind": "function",

View File

@ -107,6 +107,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "28811f59",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -99,6 +99,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "28811f59",
"id": 13,
"implemented": true,
"kind": "function",

View File

@ -107,6 +107,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "28811f59",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -89,6 +89,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 7,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -44,6 +44,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "a399b6a2",
"id": 4,
"implemented": true,
"kind": "function",
@ -120,6 +121,7 @@
{
"body": null,
"documentation": null,
"functionSelector": "c2985578",
"id": 10,
"implemented": false,
"kind": "function",
@ -160,6 +162,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "a399b6a2",
"id": 15,
"implemented": true,
"kind": "function",
@ -254,6 +257,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "c2985578",
"id": 23,
"implemented": true,
"kind": "function",
@ -300,6 +304,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "a399b6a2",
"id": 30,
"implemented": true,
"kind": "function",

View File

@ -48,6 +48,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "a399b6a2",
"implemented": true,
"isConstructor": false,
"kind": "function",
@ -163,6 +164,7 @@
{
"body": null,
"documentation": null,
"functionSelector": "c2985578",
"implemented": false,
"isConstructor": false,
"kind": "function",
@ -218,6 +220,7 @@
4
],
"documentation": null,
"functionSelector": "a399b6a2",
"implemented": true,
"isConstructor": false,
"kind": "function",
@ -349,6 +352,7 @@
10
],
"documentation": null,
"functionSelector": "c2985578",
"implemented": true,
"isConstructor": false,
"kind": "function",
@ -428,6 +432,7 @@
15
],
"documentation": null,
"functionSelector": "a399b6a2",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -93,6 +93,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 10,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -105,6 +105,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 11,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -127,6 +127,7 @@
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 10,
"implemented": true,
"kind": "function",

View File

@ -40,6 +40,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",

View File

@ -44,6 +44,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 4,
"implemented": true,
"kind": "function",
@ -100,6 +101,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 9,
"implemented": true,
"kind": "function",
@ -209,6 +211,7 @@
"statements": []
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 21,
"implemented": true,
"kind": "function",

View File

@ -48,6 +48,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",
@ -141,6 +142,7 @@
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",
@ -286,6 +288,7 @@
9
],
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",