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

Function HasTestOption

src/common/args.cpp:853–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851};
852
853bool HasTestOption(const ArgsManager& args, const std::string& test_option)
854{
855 const auto options = args.GetArgs("-test");
856 return std::any_of(options.begin(), options.end(), [test_option](const auto& option) {
857 return option == test_option;
858 });
859}
860
861fs::path GetDefaultDataDir()
862{

Callers 3

LoadAddrmanFunction · 0.85
AppInitMainFunction · 0.85
ReadRegTestArgsFunction · 0.85

Calls 4

any_ofClass · 0.85
GetArgsMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected