mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user