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

Method beforeFormat

tests/testvalidator.cpp:402–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 // ***** Endpoint for ValidatorBefore with custom format ******
401 C_ATTR(beforeFormat, :Local :AutoArgs)
402 void beforeFormat(Context *c)
403 {
404 Validator v({new ValidatorBefore(u"before_field"_s,
405 QDateTime::currentDateTime(),
406 QString{},
407 "yyyy d MM HH:mm",
408 m_validatorMessages)});
409 checkResponse(c, v.validate(c));
410 }
411
412 // ***** Endpoint for ValidatorBefore with invalid validation data ******
413 C_ATTR(beforeInvalidValidationData, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected