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

Method getEngine

tests/testcontext.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133TestEngine *TestContext::getEngine()
134{
135 qputenv("RECURSION", QByteArrayLiteral("50"));
136 auto app = new TestApplication;
137 auto engine = new TestEngine(app, QVariantMap());
138 new ContextGetActionsTest(app);
139 new ContextTest_NS(app);
140 if (!engine->init()) {
141 return nullptr;
142 }
143 return engine;
144}
145
146void TestContext::cleanupTestCase()
147{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected