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

Method afterFormat

tests/testvalidator.cpp:266–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 // ***** Endpoint for ValidatorAfter with custom format ******
265 C_ATTR(afterFormat, :Local :AutoArgs)
266 void afterFormat(Context *c)
267 {
268 Validator v({new ValidatorAfter(u"after_field"_s,
269 QDateTime::currentDateTime(),
270 QString{},
271 "yyyy d MM HH:mm",
272 m_validatorMessages)});
273 checkResponse(c, v.validate(c));
274 }
275
276 // ***** Endpoint for ValidatorAfter with invalid validation data ******
277 C_ATTR(afterInvalidValidationData, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected