2 Structures for generic tests.
8 #include <libmemcached/memcached.h>
11 typedef struct world_st world_st
;
12 typedef struct collection_st collection_st
;
13 typedef struct test_st test_st
;
16 TEST_SUCCESS
= 0, /* Backwards compatibility */
18 TEST_MEMORY_ALLOCATION_FAILURE
,
19 TEST_MAXIMUM_RETURN
/* Always add new error code before */
24 unsigned int requires_flush
;
25 test_return (*function
)(memcached_st
*memc
);
28 struct collection_st
{
30 memcached_return (*pre
)(memcached_st
*memc
);
31 memcached_return (*post
)(memcached_st
*memc
);
36 collection_st
*collections
;
37 void *(*create
)(void);
38 void (*destroy
)(void *collection_object
);
41 /* How we make all of this work :) */
42 void get_world(world_st
*world
);