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

Method beforeValidWithTimeZone

tests/testvalidator.cpp:432–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 // ***** Endpoint for ValidatorBefore with time zone *****
431 C_ATTR(beforeValidWithTimeZone, :Local :AutoArgs)
432 void beforeValidWithTimeZone(Context *c)
433 {
434 Validator v({new ValidatorBefore(u"after_field"_s,
435 QDateTime(QDate(2018, 1, 15),
436 QTime(12, 0),
437 QTimeZone(QByteArrayLiteral("America/Tijuana"))),
438 u"Europe/Berlin"_s,
439 nullptr,
440 m_validatorMessages)});
441 checkResponse(c, v.validate(c));
442 }
443
444 // ***** Endpoint for ValidatorBefore with time zone in iput field *****
445 C_ATTR(beforeValidWithTimeZoneField, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected