MySQL  8.0.16
Source Code Documentation
basic_engine_testsuite.c File Reference
#include "config.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include "basic_engine_testsuite.h"

Functions

static enum test_result get_info_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_info_description_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_info_features_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result allocate_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result set_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result add_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result replace_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result append_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result prepend_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result store_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result expiry_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result release_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result remove_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result incr_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static void * incr_test_main (void *arg)
 
static enum test_result mt_incr_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result decr_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result flush_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_item_info_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result item_set_cas_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static void eviction_stats_handler (const char *key, const uint16_t klen, const char *val, const uint32_t vlen, const void *cookie)
 
static enum test_result lru_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_stats_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result reset_stats_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result get_stats_struct_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result aggregate_stats_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static void release_last_response (void)
 
static bool response_handler (const void *key, uint16_t keylen, const void *ext, uint8_t extlen, const void *body, uint32_t bodylen, uint8_t datatype, uint16_t status, uint64_t cas, const void *cookie)
 
static enum test_result touch_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result gat_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
static enum test_result gatq_test (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
MEMCACHED_PUBLIC_API engine_test_t * get_tests (void)
 
MEMCACHED_PUBLIC_API bool setup_suite (struct test_harness *th)
 

Variables

struct test_harness test_harness
 
uint32_t evictions
 
static protocol_binary_response_header * last_response
 

Function Documentation

◆ add_test()

static enum test_result add_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ aggregate_stats_test()

static enum test_result aggregate_stats_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ allocate_test()

static enum test_result allocate_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ append_test()

static enum test_result append_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ decr_test()

static enum test_result decr_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ eviction_stats_handler()

static void eviction_stats_handler ( const char *  key,
const uint16_t  klen,
const char *  val,
const uint32_t  vlen,
const void *  cookie 
)
static

◆ expiry_test()

static enum test_result expiry_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ flush_test()

static enum test_result flush_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ gat_test()

static enum test_result gat_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ gatq_test()

static enum test_result gatq_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_info_description_test()

static enum test_result get_info_description_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_info_features_test()

static enum test_result get_info_features_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_info_test()

static enum test_result get_info_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_item_info_test()

static enum test_result get_item_info_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_stats_struct_test()

static enum test_result get_stats_struct_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_stats_test()

static enum test_result get_stats_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_test()

static enum test_result get_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ get_tests()

MEMCACHED_PUBLIC_API engine_test_t* get_tests ( void  )

◆ incr_test()

static enum test_result incr_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ incr_test_main()

static void* incr_test_main ( void *  arg)
static

◆ item_set_cas_test()

static enum test_result item_set_cas_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ lru_test()

static enum test_result lru_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ mt_incr_test()

static enum test_result mt_incr_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ prepend_test()

static enum test_result prepend_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ release_last_response()

static void release_last_response ( void  )
static

◆ release_test()

static enum test_result release_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ remove_test()

static enum test_result remove_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ replace_test()

static enum test_result replace_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ reset_stats_test()

static enum test_result reset_stats_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ response_handler()

static bool response_handler ( const void *  key,
uint16_t  keylen,
const void *  ext,
uint8_t  extlen,
const void *  body,
uint32_t  bodylen,
uint8_t  datatype,
uint16_t  status,
uint64_t  cas,
const void *  cookie 
)
static

◆ set_test()

static enum test_result set_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ setup_suite()

MEMCACHED_PUBLIC_API bool setup_suite ( struct test_harness th)

◆ store_test()

static enum test_result store_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

◆ touch_test()

static enum test_result touch_test ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)
static

Variable Documentation

◆ evictions

uint32_t evictions

◆ last_response

protocol_binary_response_header* last_response
static

◆ test_harness

struct test_harness test_harness