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

Method incrementWithInitialByKeyValid

tests/testmemcached.cpp:598–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596 // **** Start testing icrement with initial by key valid ****
597 C_ATTR(incrementWithInitialByKeyValid, :Local :AutoArgs)
598 void incrementWithInitialByKeyValid(Context *c)
599 {
600 const uint64_t initial = 10;
601 uint64_t val = 0;
602 if (!Memcached::incrementWithInitialByKey(
603 "incGroup", "inc3", 1, initial, std::chrono::seconds{10}, &val)) {
604 setInvalid(c);
605 } else {
606 setValidity(c, initial == val);
607 }
608 }
609
610 // **** Start testing icrement with initial by key value available valid ****
611 C_ATTR(incrementWithInitialByKeyAvailableValid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected