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

Method incrementByKeyValid

tests/testmemcached.cpp:626–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624 // **** Start testing increment by key valid ****
625 C_ATTR(incrementByKeyValid, :Local :AutoArgs)
626 void incrementByKeyValid(Context *c)
627 {
628 uint64_t val = 0;
629 if (!Memcached::incrementByKey("incGroup", "inc3", 1, &val)) {
630 setInvalid(c);
631 } else {
632 setValidity(c, 12 == val);
633 }
634 }
635
636 // **** Start test get after increment by key ****
637 C_ATTR(getAfterIncrementByKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected