Changeset 356 for trunk/nom/class_c/nomtestcase.c
- Timestamp:
- Jun 7, 2008, 12:24:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomtestcase.c
r349 r356 44 44 #endif /* __OS2__ */ 45 45 46 #include "string.h" 46 47 #include <nom.h> 47 48 #include <nomtk.h> … … 49 50 #include "nomarray.h" 50 51 #include "nomtestcase.ih" 52 #include "nomstring.ih" 53 #include "nommethod.ih" 54 55 typedef void* NOMLINK nomProc(void*, void*); 51 56 52 57 NOMDLLEXPORT NOM_Scope void NOMLINK impl_NOMTestCase_setUp(NOMTestCase* nomSelf, … … 68 73 { 69 74 NOMArray* resultArray=NOMArrayNew(); 75 NOMArray* methodArray=NULL; 76 int a; 70 77 71 78 /* NOMTestCaseData* nomThis = NOMTestCaseGetData(nomSelf); */ 72 73 _setUp(nomSelf, NULL); 79 methodArray=_nomGetMethodList(nomSelf, FALSE, NULL); 74 80 75 _tearDown(nomSelf, NULL); 81 for(a=0; a<NOMArray_length(methodArray, NULL); a++) 82 { 83 char* methodName=_queryString(_getName(NOMArray_queryObjectAtIdx(methodArray, a, NULL), NULL), NULL); 84 85 /* Only Methods starting with ËtestË are run. */ 86 if(0==strstr( methodName, "test")) 87 { 88 nomProc* nProc=_queryMethodToken(NOMArray_queryObjectAtIdx(methodArray, a, NULL), NULL); 89 90 _setUp(nomSelf, NULL); 91 92 if(NULL!=nProc) 93 nProc(nomSelf, NULL); 94 95 _tearDown(nomSelf, NULL); 96 } 97 98 } 99 76 100 return resultArray; 77 101 } … … 85 109 _setUp(nomSelf, NULL); 86 110 111 g_message("%s: This method is not yet implemented.", __FUNCTION__); 87 112 88 113 _tearDown(nomSelf, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.