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

Method beforeDate

tests/testvalidator.cpp:372–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370 // ***** Endpoint for ValidatorBefore with QDate ******
371 C_ATTR(beforeDate, :Local :AutoArgs)
372 void beforeDate(Context *c)
373 {
374 Validator v({new ValidatorBefore(
375 u"before_field"_s, QDate::currentDate(), QString{}, nullptr, m_validatorMessages)});
376 checkResponse(c, v.validate(c));
377 }
378
379 // ***** Endpoint for ValidatorBefore with QTime ******
380 C_ATTR(beforeTime, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected