MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SetDataDir

Function SetDataDir

src/bench/bench_bitcoin.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static fs::path SetDataDir()
42{
43 fs::path ret = fs::temp_directory_path() / "bench_bitcoin" / fs::unique_path();
44 fs::create_directories(ret);
45 gArgs.ForceSetArg("-datadir", ret.string());
46 return ret;
47}
48
49int main(int argc, char** argv)
50{

Callers 6

BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
TestingSetupMethod · 0.85
mainFunction · 0.85

Calls 1

ForceSetArgMethod · 0.80

Tested by 5

BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
TestingSetupMethod · 0.68