MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / TEST

Function TEST

source/test/thread_test.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace Star;
6
7TEST(Thread, InvokeErrors) {
8 struct TestException {};
9
10 auto function = Thread::invoke("test", []() {
11 throw TestException();
12 });
13
14 EXPECT_THROW(function.finish(), TestException);
15}
16
17TEST(Thread, InvokeReturn) {
18 auto functionRet = Thread::invoke("test", []() {

Callers

nothing calls this directly

Calls 5

TestExceptionClass · 0.85
StringClass · 0.85
finishMethod · 0.45
tryLockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected