MCPcopy Create free account
hub / github.com/baidu/babylon / TEST_F

Function TEST_F

test/concurrent/test_epoch.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18TEST_F(EpochTest, default_accessor_not_valid) {
19 Accessor accessor;
20 ASSERT_FALSE(accessor);
21 ASSERT_DEATH(accessor.lock(), "");
22}
23
24TEST_F(EpochTest, accessor_valid_until_release) {
25 auto accessor = epoch.create_accessor();

Callers

nothing calls this directly

Calls 10

lockMethod · 0.80
create_accessorMethod · 0.80
accessor_numberMethod · 0.80
tickMethod · 0.80
emplace_backMethod · 0.80
low_water_markMethod · 0.80
unlockMethod · 0.80
loadMethod · 0.80
releaseMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected