MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / test_basicRun

Method test_basicRun

tests/Task_test.cpp:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void test_basicRun()
128 {
129 BasicTask t;
130 QObject::connect(&t, &Task::finished,
131 [&] { QVERIFY2(t.wasSuccessful(), "Task finished but was not successful when it should have been."); });
132 t.start();
133
134 QVERIFY2(QTest::qWaitFor([&]() { return t.isFinished(); }, 1000), "Task didn't finish as it should.");
135 }
136
137 void test_basicConcurrentRun()
138 {

Callers

nothing calls this directly

Calls 3

wasSuccessfulMethod · 0.80
isFinishedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected