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

Method test2

tests/testviewjson.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 C_ATTR(test2, :Local)
46 void test2(Context *c)
47 {
48 c->setStash(u"foo"_s, QByteArrayLiteral("bar"));
49 c->setStash(u"bar"_s, QByteArrayLiteral("baz"));
50 c->setStash(u"SingleKey"_s, QByteArrayLiteral("ok"));
51 c->setStash(u"One"_s, 1);
52 c->setStash(u"Two"_s, 2);
53 c->forward(c->view(u"view2"_s));
54 }
55
56 C_ATTR(test3, :Local)
57 void test3(Context *c)

Callers

nothing calls this directly

Calls 3

setStashMethod · 0.80
forwardMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected