Reformat standard_optimizer command-line tests for readability

This commit is contained in:
Kamil Śliwak 2021-10-06 15:43:20 +02:00
parent aed218fd75
commit b415e94e19
48 changed files with 264 additions and 119 deletions

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,16 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_invalid_detail_type/in.sol"]}
},
"settings":
{
"optimizer": {
"details": { "peephole": 7 }
}
"settings": {
"optimizer": {"details": {"peephole": 7}}
}
}

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"\"settings.optimizer.details.peephole\" must be Boolean","message":"\"settings.optimizer.details.peephole\" must be Boolean","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "\"settings.optimizer.details.peephole\" must be Boolean",
"message": "\"settings.optimizer.details.peephole\" must be Boolean",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,16 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_invalid_details/in.sol"]}
},
"settings":
{
"optimizer": {
"details": { "notThere": true }
}
"settings": {
"optimizer": {"details": {"notThere": true}}
}
}

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"Unknown key \"notThere\"","message":"Unknown key \"notThere\"","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "Unknown key \"notThere\"",
"message": "Unknown key \"notThere\"",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,17 +1,12 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_no_yul/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"enabled": true,
"details": { "yul": false }
"details": {"yul": false}
}
}
}

View File

@ -1 +1,9 @@
{"sources":{"A":{"id":0}}}
{
"sources":
{
"A":
{
"id": 0
}
}
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yul/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"enabled": true
}

View File

@ -1 +1,9 @@
{"sources":{"A":{"id":0}}}
{
"sources":
{
"A":
{
"id": 0
}
}
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,16 +1,14 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": { "yul": true, "yulDetails": {} }
"details": {
"yul": true,
"yulDetails": {}
}
}
}
}

View File

@ -1 +1,9 @@
{"sources":{"A":{"id":0}}}
{
"sources":
{
"A":
{
"id": 0
}
}
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,16 +1,14 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_no_object/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": { "yul": true, "yulDetails": 7 }
"details": {
"yul": true,
"yulDetails": 7
}
}
}
}

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"\"settings.optimizer.details.yulDetails\" must be an object","message":"\"settings.optimizer.details.yulDetails\" must be an object","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "\"settings.optimizer.details.yulDetails\" must be an object",
"message": "\"settings.optimizer.details.yulDetails\" must be an object",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": {
"yul": true,

View File

@ -1 +1,9 @@
{"sources":{"A":{"id":0}}}
{
"sources":
{
"A":
{
"id": 0
}
}
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps_invalid_abbreviation/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": {
"yul": true,

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": 'b' is not a valid step abbreviation","message":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": 'b' is not a valid step abbreviation","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": 'b' is not a valid step abbreviation",
"message": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": 'b' is not a valid step abbreviation",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps_invalid_nesting/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": {
"yul": true,

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Nested brackets are not supported","message":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Nested brackets are not supported","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Nested brackets are not supported",
"message": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Nested brackets are not supported",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps_type/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": {
"yul": true,

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"\"settings.optimizer.details.optimizerSteps\" must be a string","message":"\"settings.optimizer.details.optimizerSteps\" must be a string","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "\"settings.optimizer.details.optimizerSteps\" must be a string",
"message": "\"settings.optimizer.details.optimizerSteps\" must be a string",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,14 +1,9 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps_unbalanced_bracket/in.sol"]}
},
"settings":
{
"settings": {
"optimizer": {
"details": {
"yul": true,

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Unbalanced brackets","message":"Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Unbalanced brackets","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Unbalanced brackets",
"message": "Invalid optimizer step sequence in \"settings.optimizer.details.optimizerSteps\": Unbalanced brackets",
"severity": "error",
"type": "JSONError"
}
]
}

View File

@ -0,0 +1 @@
--pretty-json --json-indent 4

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
function f() public pure {}
}

View File

@ -1,16 +1,10 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C { function f() public pure {} }"
}
"sources": {
"A": {"urls": ["standard_optimizer_yulDetails_optimiserSteps_without_yul/in.sol"]}
},
"settings":
{
"optimizer": {
"details": { "yulDetails": 7 }
"settings": {
"optimizer": {"details": {"yulDetails": 7}
}
}
}

View File

@ -1 +1,12 @@
{"errors":[{"component":"general","formattedMessage":"\"Providing yulDetails requires Yul optimizer to be enabled.","message":"\"Providing yulDetails requires Yul optimizer to be enabled.","severity":"error","type":"JSONError"}]}
{
"errors":
[
{
"component": "general",
"formattedMessage": "\"Providing yulDetails requires Yul optimizer to be enabled.",
"message": "\"Providing yulDetails requires Yul optimizer to be enabled.",
"severity": "error",
"type": "JSONError"
}
]
}