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

Method incrementWithInitialValid

tests/testmemcached.cpp:543–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541 // **** Start testing icrement with initial value valid ****
542 C_ATTR(incrementWithInitialValid, :Local :AutoArgs)
543 void incrementWithInitialValid(Context *c)
544 {
545 const uint64_t initial = 10;
546 uint64_t val = 0;
547 if (!Memcached::incrementWithInitial("inc1", 1, initial, std::chrono::seconds{10}, &val)) {
548 setInvalid(c);
549 } else {
550 setValidity(c, initial == val);
551 }
552 }
553
554 // **** Start testing icrement with initial value available valid ****
555 C_ATTR(incrementWithInitialAvailableValid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected