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

Method asyncTest

tests/testvalidator.cpp:1200–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198 // ******* Endpoint for async validator tests
1199 C_ATTR(asyncTest, :Local :AutoArgs)
1200 CoroContext asyncTest(Context *c)
1201 {
1202 Validator v({new ValidatorAfter(
1203 u"after_field"_s, QDate::currentDate(), {}, nullptr, m_validatorMessages),
1204 new ValidatorAccepted(u"accepted_field"_s, m_validatorMessages),
1205 new ValidatorDomain(
1206 u"domain_field"_s, ValidatorDomain::CheckARecord, m_validatorMessages)});
1207 auto vr = co_await v.coValidate(c);
1208 checkResponse(c, vr);
1209 }
1210
1211private:
1212 ValidatorMessages m_validatorMessages =

Callers

nothing calls this directly

Calls 1

coValidateMethod · 0.80

Tested by

no test coverage detected