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

Method incrementWithInitialAvailableValid

tests/testmemcached.cpp:556–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554 // **** Start testing icrement with initial value available valid ****
555 C_ATTR(incrementWithInitialAvailableValid, :Local :AutoArgs)
556 void incrementWithInitialAvailableValid(Context *c)
557 {
558 const uint64_t initial = 10;
559 uint64_t val = 0;
560 if (!Memcached::incrementWithInitial("inc1", 1, initial, std::chrono::seconds{10}, &val)) {
561 setInvalid(c);
562 } else {
563 setValidity(c, 11 == val);
564 }
565 }
566
567 // **** Start testing increment valid ****
568 C_ATTR(incrementValid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected