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

Function TEST

test/thread_local_storage_unittest.cc:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73} // namespace
74
75TEST(ThreadLocalStorageTest, Basics) {
76 ThreadLocalStorage::Slot slot;
77 slot.Set(reinterpret_cast<void*>(123));
78 int value = reinterpret_cast<intptr_t>(slot.Get());
79 EXPECT_EQ(value, 123);
80}
81
82#if defined(THREAD_SANITIZER)
83// Do not run the test under ThreadSanitizer. Because this test iterates its

Callers

nothing calls this directly

Calls 6

SetMethod · 0.45
GetMethod · 0.45
InitializeMethod · 0.45
StartMethod · 0.45
JoinMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected