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