Added tests for --no-append-metadata

- Command line tests
- Documented the standard json
- Changelog
- A Change in SolidityExecutionFramework to prevent flaky gas tests
- A boost test for --no-append-metadata
- Removed an outdated comment
This commit is contained in:
hrkrshnn
2022-09-26 20:40:34 +02:00
parent f96e802e74
commit d32661c0af
19 changed files with 119 additions and 5 deletions
+9
View File
@@ -224,6 +224,15 @@ BOOST_AUTO_TEST_CASE(cli_mode_options)
}
}
BOOST_AUTO_TEST_CASE(no_cbor_metadata)
{
vector<string> commandLine = {"solc", "--no-cbor-metadata", "contract.sol"};
CommandLineOptions parsedOptions = parseCommandLine(commandLine);
bool assert = parsedOptions.metadata.format == CompilerStack::MetadataFormat::NoMetadata;
BOOST_TEST(assert);
}
BOOST_AUTO_TEST_CASE(via_ir_options)
{
BOOST_TEST(!parseCommandLine({"solc", "contract.sol"}).output.viaIR);