MySQL  8.0.18
Source Code Documentation
suite_stubs.c File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <memcached/engine.h>
#include "suite_stubs.h"

Functions

bool test_setup (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
bool teardown (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void delay (int amt)
 
static void storeItem (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1, ENGINE_STORE_OPERATION op)
 
void add (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void append (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void decr (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void decrWithDefault (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void prepend (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void flush (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void del (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void set (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void incr (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void incrWithDefault (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
void checkValue (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1, const char *exp)
 
void assertNotExists (ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1)
 
MEMCACHED_PUBLIC_API bool setup_suite (struct test_harness *th)
 

Variables

int expiry = 3600
 
bool hasError = false
 
struct test_harness testHarness
 
static const char * key = "key"
 

Function Documentation

◆ add()

void add ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ append()

void append ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ assertNotExists()

void assertNotExists ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ checkValue()

void checkValue ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1,
const char *  exp 
)

◆ decr()

void decr ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ decrWithDefault()

void decrWithDefault ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ del()

void del ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ delay()

void delay ( int  amt)

◆ flush()

void flush ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ incr()

void incr ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ incrWithDefault()

void incrWithDefault ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ prepend()

void prepend ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ set()

void set ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ setup_suite()

MEMCACHED_PUBLIC_API bool setup_suite ( struct test_harness th)

◆ storeItem()

static void storeItem ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1,
ENGINE_STORE_OPERATION  op 
)
static

◆ teardown()

bool teardown ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

◆ test_setup()

bool test_setup ( ENGINE_HANDLE *  h,
ENGINE_HANDLE_V1 *  h1 
)

Variable Documentation

◆ expiry

int expiry = 3600

◆ hasError

bool hasError = false

◆ key

const char* key = "key"
static

◆ testHarness

struct test_harness testHarness