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

Method getEngine

tests/testvalidator.cpp:1231–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231TestEngine *TestValidator::getEngine()
1232{
1233 qputenv("RECURSION", QByteArrayLiteral("100"));
1234 auto app = new TestApplication;
1235 auto engine = new TestEngine(app, QVariantMap());
1236 new ValidatorTest(app);
1237 if (!engine->init()) {
1238 return nullptr;
1239 }
1240 return engine;
1241}
1242
1243void TestValidator::cleanupTestCase()
1244{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected