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

Method beforeDateTime

tests/testvalidator.cpp:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 // ***** Endpoint for ValidatorBefore with QDateTime ******
389 C_ATTR(beforeDateTime, :Local :AutoArgs)
390 void beforeDateTime(Context *c)
391 {
392 Validator v({new ValidatorBefore(u"before_field"_s,
393 QDateTime::currentDateTime(),
394 QString{},
395 nullptr,
396 m_validatorMessages)});
397 checkResponse(c, v.validate(c));
398 }
399
400 // ***** Endpoint for ValidatorBefore with custom format ******
401 C_ATTR(beforeFormat, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected