4 #include <libtest/test.h>
10 #include <libmemcached/memcached.h>
12 static test_return_t
exists_test(void *obj
)
21 static test_return_t
new_test(void *obj
)
23 Memcached
*memc
= new Memcached
;
33 static test_return_t
copy_test(void *obj
)
35 Memcached
*memc
= new Memcached
;
36 Memcached
*copy(memc
);
46 static test_return_t
assign_test(void *obj
)
60 { "exists", 0, reinterpret_cast<test_callback_fn
>(exists_test
) },
61 { "new", 0, reinterpret_cast<test_callback_fn
>(new_test
) },
62 { "copy", 0, reinterpret_cast<test_callback_fn
>(copy_test
) },
63 { "assign", 0, reinterpret_cast<test_callback_fn
>(assign_test
) },
67 collection_st collection
[] ={
68 {"basic", 0, 0, basic
},
72 void get_world(world_st
*world
)
74 world
->collections
= collection
;