MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / getEngine

Method getEngine

tests/testrequest.cpp:366–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366TestEngine *TestRequest::getEngine()
367{
368 qputenv("RECURSION", QByteArrayLiteral("100"));
369 auto app = new TestApplication;
370 auto engine = new TestEngine(app, QVariantMap());
371 new RequestTest(app);
372 if (!engine->init()) {
373 return nullptr;
374 }
375 return engine;
376}
377
378void TestRequest::cleanupTestCase()
379{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected