Test Suite and Framework Definitions. More...
#include "apt_string.h"
Go to the source code of this file.
Data Structures | |
struct | apt_test_suite_t |
Typedefs | |
typedef typedefAPT_BEGIN_EXTERN_C struct apt_test_suite_t | apt_test_suite_t |
typedef apt_bool_t(* | apt_test_f )(apt_test_suite_t *suite, int argc, const char *const *argv) |
typedef struct apt_test_framework_t | apt_test_framework_t |
Functions | |
apt_test_suite_t * | apt_test_suite_create (apr_pool_t *pool, const char *name, void *obj, apt_test_f tester) |
apt_test_framework_t * | apt_test_framework_create (void) |
void | apt_test_framework_destroy (apt_test_framework_t *framework) |
apt_bool_t | apt_test_framework_suite_add (apt_test_framework_t *framework, apt_test_suite_t *suite) |
apt_bool_t | apt_test_framework_run (apt_test_framework_t *framework, int argc, const char *const *argv) |
apr_pool_t * | apt_test_framework_pool_get (const apt_test_framework_t *framework) |
Test Suite and Framework Definitions.
typedef apt_bool_t(* apt_test_f)(apt_test_suite_t *suite, int argc, const char *const *argv) |
Prototype of test function
typedef struct apt_test_framework_t apt_test_framework_t |
Opaque test framework declaration
typedef typedefAPT_BEGIN_EXTERN_C struct apt_test_suite_t apt_test_suite_t |
Opaque test suite declaration
apt_test_framework_t* apt_test_framework_create | ( | void | ) |
Create test framework.
void apt_test_framework_destroy | ( | apt_test_framework_t * | framework | ) |
Destroy test framework.
framework | the test framework to destroy |
apr_pool_t* apt_test_framework_pool_get | ( | const apt_test_framework_t * | framework | ) |
Retrieve the memory pool.
framework | the test framework to retrieve memory pool from |
apt_bool_t apt_test_framework_run | ( | apt_test_framework_t * | framework, | |
int | argc, | |||
const char *const * | argv | |||
) |
Run test suites.
framework | the test framework | |
argc | the number of arguments | |
argv | the array of arguments |
apt_bool_t apt_test_framework_suite_add | ( | apt_test_framework_t * | framework, | |
apt_test_suite_t * | suite | |||
) |
Add test suite to framework.
framework | the test framework to add test suite to | |
suite | the test suite to add |
apt_test_suite_t* apt_test_suite_create | ( | apr_pool_t * | pool, | |
const char * | name, | |||
void * | obj, | |||
apt_test_f | tester | |||
) |
Create test suite.
pool | the pool to allocate memory from | |
name | the unique name of the test suite | |
obj | the external object associated with the test suite | |
tester | the test function to execute |