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

Method replaceByteArrayValid

tests/testmemcached.cpp:320–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 // **** Start testing replace byte array valid ****
319 C_ATTR(replaceByteArrayValid, :Local :AutoArgs)
320 void replaceByteArrayValid(Context *c)
321 {
322 Memcached::set("replace1", QByteArrayLiteral("Lorem ipsum"), std::chrono::seconds{5});
323 Memcached::ReturnType rt;
324 setValidity(
325 c,
326 Memcached::replace(
327 "replace1", QByteArrayLiteral("Lorem ipsum 2"), std::chrono::seconds{5}, &rt));
328 }
329
330 // **** Start testing replace byte array invalid ****
331 C_ATTR(replaceByteArrayInvalid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

setFunction · 0.85

Tested by

no test coverage detected