MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / test_basicRun

Method test_basicRun

tests/Task_test.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void test_basicRun(){
71 BasicTask t;
72 QObject::connect(&t, &Task::finished, [&]{ QVERIFY2(t.wasSuccessful(), "Task finished but was not successful when it should have been."); });
73 t.start();
74
75 QVERIFY2(QTest::qWaitFor([&]() {
76 return t.isFinished();
77 }, 1000), "Task didn't finish as it should.");
78 }
79
80 void test_basicConcurrentRun(){
81 BasicTask t1;

Callers

nothing calls this directly

Calls 3

wasSuccessfulMethod · 0.80
isFinishedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected