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

Method getEngine

tests/teststatusmessage.cpp:119–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119TestEngine *TestStatusMessage::getEngine()
120{
121 auto app = new TestApplication;
122 auto engine = new TestEngine(app, QVariantMap());
123 new StatusMessageTest(app);
124
125 new Session(app);
126
127 m_sm = new StatusMessage(app);
128 m_sessionPrefix = m_sm->sessionPrefix();
129 m_tokenParam = m_sm->tokenParam();
130 m_statusMsgStashKey = m_sm->statusMsgStashKey();
131 m_errorMsgStashKey = m_sm->errorMgStashKey();
132
133 if (!engine->init()) {
134 return nullptr;
135 }
136 return engine;
137}
138
139void TestStatusMessage::cleanupTestCase()
140{

Callers

nothing calls this directly

Calls 5

sessionPrefixMethod · 0.80
tokenParamMethod · 0.80
statusMsgStashKeyMethod · 0.80
errorMgStashKeyMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected