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

Method incrementValid

tests/testmemcached.cpp:569–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 // **** Start testing increment valid ****
568 C_ATTR(incrementValid, :Local :AutoArgs)
569 void incrementValid(Context *c)
570 {
571 uint64_t val = 0;
572 if (!Memcached::increment("inc1", 1, &val)) {
573 setInvalid(c);
574 } else {
575 setValidity(c, 12 == val);
576 }
577 }
578
579 // **** Start test get after increment ****
580 C_ATTR(getAfterIncrement, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected