MCPcopy Create free account
hub / github.com/argotorg/solidity / boolSetting

Method boolSetting

test/TestCaseReader.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool TestCaseReader::boolSetting(std::string const& _name, bool _defaultValue)
60{
61 if (m_settings.count(_name) == 0)
62 return _defaultValue;
63
64 m_unreadSettings.erase(_name);
65 std::string value = m_settings.at(_name);
66 if (value == "false")
67 return false;
68 if (value == "true")
69 return true;
70
71 BOOST_THROW_EXCEPTION(std::runtime_error("Invalid Boolean value: " + value + "."));
72}
73
74size_t TestCaseReader::sizetSetting(std::string const& _name, size_t _defaultValue)
75{

Callers 6

EVMAssemblyTestMethod · 0.80
SyntaxTestMethod · 0.80
GasTestMethod · 0.80
SemanticTestMethod · 0.80
YulInterpreterTestMethod · 0.80
EVMCodeTransformTestMethod · 0.80

Calls 3

eraseMethod · 0.80
atMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected