4e695d26ca468ca637f596155b0de1571ef0613b
[awesomized/libmemcached] / tests / test.h
1 /*
2 Structures for generic tests.
3 */
4 #include <memcached.h>
5 #include "../lib/common.h"
6
7 typedef struct collection_st collection_st;
8 typedef struct test_st test_st;
9
10 struct test_st {
11 char *name;
12 unsigned int requires_flush;
13 uint8_t (*function)(memcached_st *memc);
14 };
15
16 struct collection_st {
17 char *name;
18 memcached_return (*pre)(memcached_st *memc);
19 memcached_return (*post)(memcached_st *memc);
20 test_st *tests;
21 };
22
23 /* How we make all of this work :) */
24 collection_st *gets_collections(void);