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

Method beforeValidWithTimeZoneField

tests/testvalidator.cpp:446–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 // ***** Endpoint for ValidatorBefore with time zone in iput field *****
445 C_ATTR(beforeValidWithTimeZoneField, :Local :AutoArgs)
446 void beforeValidWithTimeZoneField(Context *c)
447 {
448 Validator v({new ValidatorBefore(u"after_field"_s,
449 QDateTime(QDate(2018, 1, 15),
450 QTime(12, 0),
451 QTimeZone(QByteArrayLiteral("America/Tijuana"))),
452 u"tz_field"_s,
453 nullptr,
454 m_validatorMessages)});
455 checkResponse(c, v.validate(c));
456 }
457
458 // ***** Endpoint for ValidatorBetween with int ******
459 C_ATTR(betweenInt, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected