const char *key, size_t key_length,
const char *value, size_t, // value_length,
void *context)
const char *key, size_t key_length,
const char *value, size_t, // value_length,
void *context)
{
uint64_t* counter= (uint64_t*)context;
unsigned long number_value= strtoul(value, (char **)NULL, 10);
{
uint64_t* counter= (uint64_t*)context;
unsigned long number_value= strtoul(value, (char **)NULL, 10);
int length= snprintf(key, sizeof(key), "%s%u", __func__, x);
int length= snprintf(key, sizeof(key), "%s%u", __func__, x);
test_compare(MEMCACHED_SUCCESS,
memcached_set(memc, key, length,
test_compare(MEMCACHED_SUCCESS,
memcached_set(memc, key, length,
- test_compare(MEMCACHED_SUCCESS,
- memcached_stat_execute(memc, NULL, item_counter, &counter));
- test_true(counter);
+ ASSERT_EQ(MEMCACHED_SUCCESS,
+ memcached_stat_execute(memc, NULL, item_counter, &counter));
+ ASSERT_TRUE(counter);