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

Method errorQueryTest

tests/teststatusmessage.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52 C_ATTR(errorQueryTest, :Local :AutoArgs)
53 void errorQueryTest(Context *c, const QString &statusKey, const QString &errorKey)
54 {
55 qDebug() << "---- stash" << c->stash();
56 c->response()->setBody(c->stash(errorKey).toString());
57 }
58
59 C_ATTR(statusQuery, :Local :AutoArgs)
60 void statusQuery(Context *c)

Callers

nothing calls this directly

Calls 3

stashMethod · 0.80
responseMethod · 0.80
setBodyMethod · 0.60

Tested by

no test coverage detected