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

Method doTest

tests/testauthentication.cpp:243–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void TestAuthentication::doTest()
244{
245 QFETCH(QString, url);
246 QFETCH(Headers, headers);
247 QFETCH(int, status);
248 QFETCH(QByteArray, output);
249
250 QUrl urlAux(url);
251
252 auto result = m_engine->createRequest(
253 "GET", urlAux.path(), urlAux.query(QUrl::FullyEncoded).toLatin1(), headers, nullptr);
254
255 QCOMPARE(result.statusCode, status);
256 QCOMPARE(result.body, output);
257}
258
259void TestAuthentication::testController_data()
260{

Callers

nothing calls this directly

Calls 2

createRequestMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected