Changeset 15985 for trunk/psModules/test/objects/tap_pmSourceIO_PS1_DEV_1.c
- Timestamp:
- Jan 2, 2008, 10:45:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/objects/tap_pmSourceIO_PS1_DEV_1.c
r15726 r15985 5 5 #include "tap.h" 6 6 #include "pstap.h" 7 /* STATUS: 8 No test for pmSourcesWrite_PS1_DEV_1_XSRC() since there is no associated 9 read function. 10 All other functions are tested. 11 XX: These tests read/write a file. Must choose a more unique name. 12 */ 7 13 8 14 #define MISC_NUM 32 … … 12 18 #define TEST_NUM_COLS (16) 13 19 #define VERBOSE 0 14 #define ERR_TRACE_LEVEL 1020 #define ERR_TRACE_LEVEL 0 15 21 #define TEST_FLOATS_EQUAL(X, Y) (abs(X - Y) < 0.0001) 16 22 #define NUM_SOURCES 5 … … 23 29 psLogSetLevel(PS_LOG_INFO); 24 30 psTraceSetLevel("err", ERR_TRACE_LEVEL); 25 plan_tests( 80);31 plan_tests(79); 26 32 27 33 28 34 // ---------------------------------------------------------------------- 29 35 // pmSourcesWrite_PS1_DEV_1() tests 30 // bool pmSourcesWrite_PS1_DEV_1 (psFits *fits, psArray *sources,31 // psMetadata *imageHeader, psMetadata *tableHeader, char *extname char *xsrcname)32 36 // Call pmSourcesWrite_PS1_DEV_1() with NULL psFits input parameter 33 if (1){37 { 34 38 psMemId id = psMemGetId(); 35 39 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w"); … … 56 60 57 61 // Call pmSourcesWrite_PS1_DEV_1() with NULL pmSource input parameter 58 if (1){62 { 59 63 psMemId id = psMemGetId(); 60 64 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w"); … … 80 84 81 85 // Call pmSourcesWrite_PS1_DEV_1() with NULL extname input parameter 82 if (1){86 { 83 87 psMemId id = psMemGetId(); 84 88 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w"); … … 105 109 // ---------------------------------------------------------------------- 106 110 // pmSourcesRead_PS1_DEV_1() tests 107 // psArray *pmSourcesRead_PS1_DEV_1 (psFits *fits, psMetadata *header)108 //109 111 // Call pmSourcesRead_PS1_DEV_1() with NULL psFits input parameter 110 if (1){112 { 111 113 psMemId id = psMemGetId(); 112 114 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "r"); … … 121 123 122 124 // Call pmSourcesRead_PS1_DEV_1() with NULL header input parameter 123 if (1){125 { 124 126 psMemId id = psMemGetId(); 125 127 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "r"); … … 150 152 #define TEST_BASE_MODE 1 151 153 152 if (1){154 { 153 155 psMemId id = psMemGetId(); 154 156 psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w"); … … 203 205 src->sky = TEST_BASE_SKY + (float) i; 204 206 src->skyErr = TEST_BASE_SKY_ERR + (float) i; 205 src->psfProb = TEST_BASE_PSF_PROB + (float) i;207 // src->psfProb = TEST_BASE_PSF_PROB + (float) i; 206 208 src->crNsigma = TEST_BASE_CR_N_SIGMA + (float) i; 207 209 src->extNsigma = TEST_BASE_EXT_N_SIGMA + (float) i; … … 226 228 227 229 // Call pmSourcesRead_PS1_DEV_1() with acceptable input parameters 228 if (1){230 { 229 231 psMemId id = psMemGetId(); 230 232 psFits* fitsFile = psFitsOpen(tableFilename, "rw"); … … 304 306 pmModelClassCleanup(); 305 307 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 306 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");307 308 } 308 309 }
Note:
See TracChangeset
for help on using the changeset viewer.
