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

Method doTest

tests/testrequest.cpp:383–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void TestRequest::doTest()
384{
385 QFETCH(QByteArray, method);
386 QFETCH(QString, url);
387 QFETCH(Headers, headers);
388 QFETCH(QByteArray, body);
389 QFETCH(QByteArray, output);
390
391 QUrl urlAux(url);
392
393 auto result = m_engine->createRequest(method,
394 urlAux.path(QUrl::FullyEncoded),
395 urlAux.query(QUrl::FullyEncoded).toLatin1(),
396 headers,
397 &body);
398
399 // qDebug() << result.body;
400 // qDebug() << output;
401 QCOMPARE(result.body, output);
402}
403
404void TestRequest::testController_data()
405{

Callers

nothing calls this directly

Calls 2

createRequestMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected