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

Method requiredIfStashNotMatch

tests/testvalidator.cpp:1010–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008 // ***** Endpoint for ValidatorRequiredIfStash with stash not match *****
1009 C_ATTR(requiredIfStashNotMatch, :Local :AutoArgs)
1010 void requiredIfStashNotMatch(Context *c)
1011 {
1012 c->setStash(u"stashkey"_s, u"drei"_s);
1013 Validator v({new ValidatorRequiredIfStash(
1014 u"field"_s, u"stashkey"_s, QVariantList({u"eins"_s, u"zwei"_s}), m_validatorMessages)});
1015 checkResponse(c, v.validate(c));
1016 }
1017
1018 // ***** Endpoint for ValidatorRequiredIfStash with stash match in other stash key *****
1019 C_ATTR(requiredIfStashNotMatchStashKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 2

setStashMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected