MCPcopy Create free account
hub / github.com/apache/kvrocks / TEST_F

Function TEST_F

tests/cppunit/server_client_pause_test.cc:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84// ---------------------------------------------------------------------------
85
86TEST_F(ServerClientPauseTest, SetPauseAllMode) {
87 uint64_t future_ms = util::GetTimeStampMS() + 60000;
88 server_->PauseConns(future_ms, PauseMode::kAll);
89
90 // Write command should be suspended (not pass through).
91 EXPECT_FALSE(commandPassesThrough("set", redis::kCmdWrite));
92 server_->UnpauseConns();
93}
94
95TEST_F(ServerClientPauseTest, UnpauseClearsState) {
96 uint64_t future_ms = util::GetTimeStampMS() + 60000;

Callers

nothing calls this directly

Calls 7

GetTimeStampMSFunction · 0.85
ParseClientCommandFunction · 0.85
PauseConnsMethod · 0.80
UnpauseConnsMethod · 0.80
IsOKMethod · 0.45
MsgMethod · 0.45
GetCodeMethod · 0.45

Tested by

no test coverage detected