apt_test_suite.h File Reference

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_tapt_test_suite_create (apr_pool_t *pool, const char *name, void *obj, apt_test_f tester)
apt_test_framework_tapt_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)

Detailed Description

Test Suite and Framework Definitions.


Typedef Documentation

typedef apt_bool_t(* apt_test_f)(apt_test_suite_t *suite, int argc, const char *const *argv)

Prototype of test function

Opaque test framework declaration

typedef typedefAPT_BEGIN_EXTERN_C struct apt_test_suite_t apt_test_suite_t

Opaque test suite declaration


Function Documentation

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.

Parameters:
framework the test framework to destroy
apr_pool_t* apt_test_framework_pool_get ( const apt_test_framework_t framework  ) 

Retrieve the memory pool.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 25 Mar 2013 for UniMRCP by  doxygen 1.6.1