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

Method afterValidWithTimeZoneField

tests/testvalidator.cpp:310–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 // ***** Endpoint for ValidatorAfter with time zone in iput field *****
309 C_ATTR(afterValidWithTimeZoneField, :Local :AutoArgs)
310 void afterValidWithTimeZoneField(Context *c)
311 {
312 Validator v({new ValidatorAfter(u"after_field"_s,
313 QDateTime(QDate(2018, 1, 15),
314 QTime(12, 0),
315 QTimeZone(QByteArrayLiteral("Indian/Christmas"))),
316 u"tz_field"_s,
317 nullptr,
318 m_validatorMessages)});
319 checkResponse(c, v.validate(c));
320 }
321
322 // ***** Endpoint for ValidatorAlpha ******
323 C_ATTR(alpha, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected