MCPcopy Create free account
hub / github.com/apache/brpc / TEST

Function TEST

test/callback_helpers_unittest.cc:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17TEST(BindHelpersTest, TestScopedClosureRunnerExitScope) {
18 int run_count = 0;
19 {
20 butil::ScopedClosureRunner runner(butil::Bind(&Increment, &run_count));
21 EXPECT_EQ(0, run_count);
22 }
23 EXPECT_EQ(1, run_count);
24}
25
26TEST(BindHelpersTest, TestScopedClosureRunnerRelease) {
27 int run_count = 0;

Callers

nothing calls this directly

Calls 3

ReleaseMethod · 0.45
RunMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected