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

Method replaceByteArrayValidByKey

tests/testmemcached.cpp:387–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 // **** Start testing replace byte array by key valid ****
386 C_ATTR(replaceByteArrayValidByKey, :Local :AutoArgs)
387 void replaceByteArrayValidByKey(Context *c)
388 {
389 Memcached::setByKey(
390 "replaceGroup", "replace5", QByteArrayLiteral("Lorem ipsum"), std::chrono::seconds{5});
391 Memcached::ReturnType rt;
392 setValidity(c,
393 Memcached::replaceByKey("replaceGroup",
394 "replace5",
395 QByteArrayLiteral("Lorem ipsum 2"),
396 std::chrono::seconds{5},
397 &rt));
398 }
399
400 // **** Start testing replace byte array by key invalid ****
401 C_ATTR(replaceByteArrayInvalidByKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected