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

Method mgetByKeyValid

tests/testmemcached.cpp:913–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911 // **** Start testing mget by key valid ****
912 C_ATTR(mgetByKeyValid, :Local :AutoArgs)
913 void mgetByKeyValid(Context *c)
914 {
915 const auto h1 = getTestHash("valb");
916 for (const auto &[key, value] : h1.asKeyValueRange()) {
917 Memcached::setByKey("mgetGroup", key, value, 1min);
918 }
919 const auto h2 = Memcached::mgetByKey("mgetGroup", h1.keys());
920 setValidity(c, h1 == h2);
921 }
922
923 // **** Start testing mget variant valid
924 C_ATTR(mgetVariantValid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected