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

Method getByteArray

tests/testmemcached.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 // **** Start testing getting byte array ****
79 C_ATTR(getByteArray, :Local :AutoArgs)
80 void getByteArray(Context *c)
81 {
82 auto in = getKeyVal(c);
83 Memcached::ReturnType rt;
84 if (Memcached::get(in.first, nullptr, &rt) == in.second.toUtf8()) {
85 setValid(c);
86 } else {
87 setRt(c, rt);
88 }
89 }
90
91 // **** Start testing set empty key ****
92 C_ATTR(setEmptyKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected