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

Function testCompact

fdbserver/ConfigDatabaseUnitTests.actor.cpp:687–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687ACTOR template <class Env>
688Future<Void> testCompact(UnitTestParameters params) {
689 state Env env(params.getDataDir(), "class-A");
690 wait(env.setup(ConfigClassSet({ "class-A"_sr })));
691 wait(set(env, "class-A"_sr, "test_long"_sr, int64_t{ 1 }));
692 wait(compact(env));
693 wait(check(env, &TestKnobs::TEST_LONG, Optional<int64_t>{ 1 }));
694 wait(set(env, "class-A"_sr, "test_long"_sr, int64_t{ 2 }));
695 wait(check(env, &TestKnobs::TEST_LONG, Optional<int64_t>{ 2 }));
696 return Void();
697}
698
699ACTOR template <class Env>
700Future<Void> testChangeBroadcaster(UnitTestParameters params) {

Callers

nothing calls this directly

Calls 7

ConfigClassSetClass · 0.85
getDataDirMethod · 0.80
setFunction · 0.70
compactFunction · 0.70
checkFunction · 0.70
VoidClass · 0.50
setupMethod · 0.45

Tested by

no test coverage detected