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

Function TEST

test/platform_thread_unittest.cc:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30TEST(PlatformThreadTest, Trivial) {
31 TrivialThread thread;
32 PlatformThreadHandle handle;
33
34 ASSERT_FALSE(thread.did_run());
35 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
36 PlatformThread::Join(handle);
37 ASSERT_TRUE(thread.did_run());
38}
39
40TEST(PlatformThreadTest, TrivialTimesTen) {
41 TrivialThread thread[10];

Callers

nothing calls this directly

Calls 3

JoinFunction · 0.85
did_runMethod · 0.80
thread_idMethod · 0.45

Tested by

no test coverage detected