MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / integerGetArgBug

Method integerGetArgBug

src/qt/test/optiontests.cpp:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void OptionTests::integerGetArgBug()
89{
90 // Test regression https://github.com/bitcoin/bitcoin/issues/24457. Ensure
91 // that setting integer prune value doesn't cause an exception to be thrown
92 // in the OptionsModel constructor
93 gArgs.LockSettings([&](common::Settings& settings) {
94 settings.forced_settings.erase("prune");
95 settings.rw_settings["prune"] = 3814;
96 });
97 gArgs.WriteSettingsFile();
98 bilingual_str error;
99 QVERIFY(OptionsModel{m_node}.Init(error));
100 gArgs.LockSettings([&](common::Settings& settings) {
101 settings.rw_settings.erase("prune");
102 });
103 gArgs.WriteSettingsFile();
104}
105
106void OptionTests::parametersInteraction()
107{

Callers

nothing calls this directly

Calls 3

WriteSettingsFileMethod · 0.80
eraseMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected