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

Function SetupCommonTestArgs

src/test/util/setup_common.cpp:129–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127static NetworkSetup g_networksetup_instance;
128
129void SetupCommonTestArgs(ArgsManager& argsman)
130{
131 argsman.AddArg("-testdatadir", strprintf("Custom data directory (default: %s<random_string>)", fs::PathToString(fs::temp_directory_path() / TEST_DIR_PATH_ELEMENT / "")),
132 ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
133}
134
135/** Test setup failure */
136static void ExitFailure(std::string_view str_err)

Callers 2

BasicTestingSetupMethod · 0.85
SetupBenchArgsFunction · 0.85

Calls 2

PathToStringFunction · 0.85
AddArgMethod · 0.80

Tested by

no test coverage detected