Sat Aug 6 00:40:06 2011

Asterisk developer's documentation


test.h File Reference

Test Framework API. More...

Go to the source code of this file.

Data Structures

struct  ast_test_info
 Contains all the initialization information required to store a new test definition. More...

Defines

#define AST_TEST_DEFINE(hdr)   static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test *test)
#define AST_TEST_REGISTER(cb)
#define ast_test_status_update(a, b, c...)
#define AST_TEST_UNREGISTER(cb)

Enumerations

enum  ast_test_command { TEST_INIT, TEST_EXECUTE }
enum  ast_test_result_state { AST_TEST_NOT_RUN, AST_TEST_PASS, AST_TEST_FAIL }


Detailed Description

Test Framework API.

For an overview on how to use the test API, see Asterisk Unit Test API

Author:
David Vossel <dvossel@digium.com>

Russell Bryant <russell@digium.com>

Definition in file test.h.


Define Documentation

#define AST_TEST_DEFINE ( hdr   )     static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test *test)

Macros used for defining and registering a test

Definition at line 126 of file test.h.

#define AST_TEST_REGISTER ( cb   ) 

Definition at line 127 of file test.h.

#define ast_test_status_update ( a,
b,
c...   ) 

Definition at line 129 of file test.h.

#define AST_TEST_UNREGISTER ( cb   ) 

Definition at line 128 of file test.h.


Enumeration Type Documentation

enum ast_test_command

Enumerator:
TEST_INIT 
TEST_EXECUTE 

Definition at line 139 of file test.h.

00139                       {
00140    TEST_INIT,
00141    TEST_EXECUTE,
00142 };

enum ast_test_result_state

Enumerator:
AST_TEST_NOT_RUN 
AST_TEST_PASS 
AST_TEST_FAIL 

Definition at line 133 of file test.h.

00133                            {
00134    AST_TEST_NOT_RUN,
00135    AST_TEST_PASS,
00136    AST_TEST_FAIL,
00137 };


Generated on Sat Aug 6 00:40:06 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7