void get_world(world_st *world)
{
world->collections= collection;
- world->collection_startup= (test_callback_fn)world_collection_startup;
+ world->test_startup= (test_callback_fn)world_test_startup;
world->flush= (test_callback_fn)world_flush;
world->pre_run= (test_callback_fn)world_pre_run;
world->create= (test_callback_create_fn)world_create;
void get_world(world_st *world)
{
world->collections= collection;
- world->collection_startup= (test_callback_fn)world_collection_startup;
+ world->test_startup= (test_callback_fn)world_test_startup;
world->flush= (test_callback_fn)world_flush;
world->pre_run= (test_callback_fn)world_pre_run;
world->create= (test_callback_create_fn)world_create;
/* Prototypes for functions we will pass to test framework */
libmemcached_test_container_st *world_create(test_return_t *error);
-test_return_t world_collection_startup(libmemcached_test_container_st *);
+test_return_t world_test_startup(libmemcached_test_container_st *);
test_return_t world_flush(libmemcached_test_container_st *container);
test_return_t world_pre_run(libmemcached_test_container_st *);
}
-test_return_t world_collection_startup(libmemcached_test_container_st *container)
+test_return_t world_test_startup(libmemcached_test_container_st *container)
{
memcached_return_t rc;
container->memc= memcached_create(NULL);
void get_world(world_st *world)
{
world->collections= collection;
- world->collection_startup= reinterpret_cast<test_callback_fn>(world_collection_startup);
+ world->test_startup= reinterpret_cast<test_callback_fn>(world_test_startup);
world->flush= reinterpret_cast<test_callback_fn>(world_flush);
world->pre_run= reinterpret_cast<test_callback_fn>(world_pre_run);
world->create= reinterpret_cast<test_callback_create_fn>(world_create);
fprintf(stderr, "Testing %s", run->name);
- if (world.collection_startup)
+ if (world.test_startup)
{
- world.collection_startup(world_ptr);
+ world.test_startup(world_ptr);
}
if (run->requires_flush && world.flush)
test_callback_fn destroy;
/* This is called a the beginning of any collection run. */
- test_callback_fn collection_startup;
+ test_callback_fn test_startup;
/* This called on a test if the test requires a flush call (the bool is from test_st) */
test_callback_fn flush;
void get_world(world_st *world)
{
world->collections= collection;
- world->collection_startup= (test_callback_fn)world_collection_startup;
+ world->test_startup= (test_callback_fn)world_test_startup;
world->flush= (test_callback_fn)world_flush;
world->pre_run= (test_callback_fn)world_pre_run;
world->create= (test_callback_create_fn)world_create;