Main Page Alphabetical List Compound List File List Compound Members File Members
GATList_tests.c File ReferenceSource file for some GATList test routines.
More...
#include <assert.h>
#include <string.h>
#include "GAT.h"
#include "GATMemoryStream.h"
#include "GATTestUtils.h"
Include dependency graph for GATList_tests.c:
Go to the source code of this file.
|
Defines |
| #define | countof(x) (sizeof(x)/sizeof(x[0])) |
Functions |
| | GATLIST_DEFINE (GATint32) GATLIST_DEFINE_LIST(GATList_GATint32) GATOBJECT_DEFINE_CONVERTERS_QUALIFIED(extern |
| | GATOBJECT_DEFINE_CONVERTERS_QUALIFIED (extern, GATList_GATList_GATint32, GATType_GATList) |
| void | fill_GATList_GATint32 (GATList_GATint32 list, int *values, size_t count) |
| void | fill_GATList_String (GATList_String list, char const **values, size_t count) |
| GATList_GATint32 | create_fill_GATList_GATint32 (int *values, size_t count) |
| GATList_String | create_fill_GATList_String (char const **values, size_t count) |
| void | verify_GATList_GATint32 (GATList_GATint32 list, int *values, size_t count) |
| void | verify_GATList_String (GATList_String list, char const **values, size_t count) |
| void | verify_GATList_GATint32_serialization (GATContext context, GATList_GATint32 list) |
| void | verify_GATList_String_serialization (GATContext context, GATList_String list) |
| void | verify_GATList_GATList_GATint32_serialization (GATContext context, GATList_GATList_GATint32 list) |
| GATList_GATint32_Iterator | advance_GATList_GATint32_Iterator (GATList_GATint32 list, GATList_GATint32_Iterator it, size_t count) |
| GATList_String_Iterator | advance_GATList_String_Iterator (GATList_String list, GATList_String_Iterator it, size_t count) |
| void | erase_GATList_GATint32 (GATList_GATint32 list) |
| void | erase_GATList_String (GATList_String list) |
| void | test_GATList_GATint32_Splice (void) |
| void | test_GATList_String_Splice (void) |
| void | test_GATList_GATint32 (GATContext context) |
| void | test_GATList_GATList_GATint32 (GATContext context) |
| void | test_GATList_String (GATContext context) |
| int | main (void) |
Variables |
| const char * | rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/test/internal/GATList_tests.c,v 1.27 2004/04/20 17:04:43 hartmutkaiser Exp $" |
| | GATList_GATint32 |
| | GATType_GATList |
Detailed Description
Source file for some GATList test routines.
- Date:
-
Sat Sep 27 2003
- Version:
-
- Header:
-
/export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/test/internal/GATList_tests.c,v 1.27 2004/04/20 17:04:43 hartmutkaiser Exp
Copyright (C) Hartmut Kaiser This file is part of the GAT Engine. Contributed by Hartmut Kaiser <hartmutkaiser [at] t-online [dot] de>.
Use, modification and distribution is subject to the Gridlab Software License. (See accompanying file GLlicense.txt or copy at http://www.gridlab.org/GLlicense.txt)
Definition in file GATList_tests.c.
Define Documentation
| #define countof |
( |
x |
|
) |
(sizeof(x)/sizeof(x[0]))
|
|
Function Documentation
| GATOBJECT_DEFINE_CONVERTERS_QUALIFIED |
( |
extern |
, |
|
|
GATList_GATList_GATint32 |
, |
|
|
GATType_GATList |
|
|
) |
|
|
| void fill_GATList_GATint32 |
( |
GATList_GATint32 |
list, |
|
|
int * |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
| void fill_GATList_String |
( |
GATList_String |
list, |
|
|
char const ** |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
| GATList_GATint32 create_fill_GATList_GATint32 |
( |
int * |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
| GATList_String create_fill_GATList_String |
( |
char const ** |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
| void verify_GATList_GATint32 |
( |
GATList_GATint32 |
list, |
|
|
int * |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
|
|
Definition at line 130 of file GATList_tests.c.
References fill_GATList_GATint32(), GAT_SUCCESS, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATList_GATint32, and GATTrue.
Referenced by test_GATList_GATint32(), test_GATList_GATint32_Splice(), and test_GATList_GATList_GATint32(). |
| void verify_GATList_String |
( |
GATList_String |
list, |
|
|
char const ** |
values, |
|
|
size_t |
count |
|
) |
[static] |
|
|
|
Definition at line 169 of file GATList_tests.c.
References fill_GATList_String(), GAT_SUCCESS, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATList_String_Begin(), GATList_String_Create(), GATList_String_Destroy(), GATList_String_Get(), GATList_String_Next(), and GATTrue.
Referenced by test_GATList_String(), and test_GATList_String_Splice(). |
|
|
Definition at line 215 of file GATList_tests.c.
References GAT_FAIL, GAT_SUCCEEDED, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATList_GATint32, GATMemoryStream, GATMemoryStream_Create(), GATMemoryStream_Destroy(), GATMemoryStream_Seek(), GATOrigin_Set, GATResult, GATSerialisable_Serialise(), and GATTrue.
Referenced by test_GATList_GATint32(). |
| void verify_GATList_String_serialization |
( |
GATContext |
context, |
|
|
GATList_String |
list |
|
) |
[static] |
|
|
|
Definition at line 298 of file GATList_tests.c.
References GAT_FAIL, GAT_SUCCEEDED, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATList_String_DeSerialise(), GATList_String_Destroy(), GATList_String_Equals(), GATList_String_Serialise(), GATMemoryStream, GATMemoryStream_Create(), GATMemoryStream_Destroy(), GATMemoryStream_Seek(), GATOrigin_Set, GATResult, GATSerialisable_DeSerialise(), GATSerialisable_Serialise(), and GATTrue.
Referenced by test_GATList_String(). |
| void verify_GATList_GATList_GATint32_serialization |
( |
GATContext |
context, |
|
|
GATList_GATList_GATint32 |
list |
|
) |
[static] |
|
|
|
Definition at line 381 of file GATList_tests.c.
References GAT_FAIL, GAT_SUCCEEDED, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATMemoryStream, GATMemoryStream_Create(), GATMemoryStream_Destroy(), GATMemoryStream_Seek(), GATOrigin_Set, GATResult, GATSerialisable_Serialise(), and GATTrue.
Referenced by test_GATList_GATList_GATint32(). |
| GATList_GATint32_Iterator advance_GATList_GATint32_Iterator |
( |
GATList_GATint32 |
list, |
|
|
GATList_GATint32_Iterator |
it, |
|
|
size_t |
count |
|
) |
[static] |
|
| GATList_String_Iterator advance_GATList_String_Iterator |
( |
GATList_String |
list, |
|
|
GATList_String_Iterator |
it, |
|
|
size_t |
count |
|
) |
[static] |
|
| void erase_GATList_String |
( |
GATList_String |
list |
) |
[static] |
|
| void test_GATList_GATint32_Splice |
( |
void |
|
) |
[static] |
|
| void test_GATList_String_Splice |
( |
void |
|
) |
[static] |
|
| void test_GATList_GATint32 |
( |
GATContext |
context |
) |
[static] |
|
| void test_GATList_GATList_GATint32 |
( |
GATContext |
context |
) |
[static] |
|
|
|
Definition at line 698 of file GATList_tests.c.
References countof, create_fill_GATList_GATint32(), GAT_SUCCESS, GAT_TEST, GAT_TEST_START, GAT_TEST_STOP, GATBool, GATFalse, GATList_GATint32, GATTrue, verify_GATList_GATint32(), and verify_GATList_GATList_GATint32_serialization().
Referenced by main(). |
| void test_GATList_String |
( |
GATContext |
context |
) |
[static] |
|
|
|
Definition at line 945 of file GATList_tests.c.
References GAT_TEST, GAT_TEST_FINISH, GAT_TEST_INIT, GAT_TEST_SUITE, GAT_TEST_TRACE, GATContext_Create(), GATContext_Destroy(), GATContext_GetType(), GATType_GATContext, test_GATList_GATint32(), test_GATList_GATList_GATint32(), and test_GATList_String(). |
Variable Documentation
const char* rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/test/internal/GATList_tests.c,v 1.27 2004/04/20 17:04:43 hartmutkaiser Exp $" [static]
|
|
|