MCPcopy Create free account
hub / github.com/apple/foundationdb / setup

Method setup

fdbserver/workloads/UnitTests.actor.cpp:100–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99 std::string description() const override { return "UnitTests"; }
100 Future<Void> setup(Database const& cx) override {
101 platform::eraseDirectoryRecursive(testParams.getDataDir());
102 return Void();
103 }
104 Future<Void> start(Database const& cx) override {
105 if (enabled)
106 return runUnitTests(this);

Callers

nothing calls this directly

Calls 3

eraseDirectoryRecursiveFunction · 0.85
getDataDirMethod · 0.80
VoidClass · 0.50

Tested by

no test coverage detected