IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:45:23 AM (18 years ago)
Author:
gusciora
Message:

Significant changes and additions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/objects/tap_pmSourceIO_PS1_DEV_1.c

    r15726 r15985  
    55#include "tap.h"
    66#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*/
    713
    814#define MISC_NUM                32
     
    1218#define TEST_NUM_COLS           (16)
    1319#define VERBOSE                 0
    14 #define ERR_TRACE_LEVEL         10
     20#define ERR_TRACE_LEVEL         0
    1521#define TEST_FLOATS_EQUAL(X, Y) (abs(X - Y) < 0.0001)
    1622#define NUM_SOURCES             5
     
    2329    psLogSetLevel(PS_LOG_INFO);
    2430    psTraceSetLevel("err", ERR_TRACE_LEVEL);
    25     plan_tests(80);
     31    plan_tests(79);
    2632
    2733
    2834    // ----------------------------------------------------------------------
    2935    // pmSourcesWrite_PS1_DEV_1() tests
    30     // bool pmSourcesWrite_PS1_DEV_1 (psFits *fits, psArray *sources,
    31     //      psMetadata *imageHeader, psMetadata *tableHeader, char *extname char *xsrcname)
    3236    // Call pmSourcesWrite_PS1_DEV_1() with NULL psFits input parameter
    33     if (1) {
     37    {
    3438        psMemId id = psMemGetId();
    3539        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w");
     
    5660
    5761    // Call pmSourcesWrite_PS1_DEV_1() with NULL pmSource input parameter
    58     if (1) {
     62    {
    5963        psMemId id = psMemGetId();
    6064        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w");
     
    8084
    8185    // Call pmSourcesWrite_PS1_DEV_1() with NULL extname input parameter
    82     if (1) {
     86    {
    8387        psMemId id = psMemGetId();
    8488        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w");
     
    105109    // ----------------------------------------------------------------------
    106110    // pmSourcesRead_PS1_DEV_1() tests
    107     // psArray *pmSourcesRead_PS1_DEV_1 (psFits *fits, psMetadata *header)
    108     //
    109111    // Call pmSourcesRead_PS1_DEV_1() with NULL psFits input parameter
    110     if (1) {
     112    {
    111113        psMemId id = psMemGetId();
    112114        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "r");
     
    121123
    122124    // Call pmSourcesRead_PS1_DEV_1() with NULL header input parameter
    123     if (1) {
     125    {
    124126        psMemId id = psMemGetId();
    125127        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "r");
     
    150152    #define TEST_BASE_MODE              1
    151153
    152     if (1) {
     154    {
    153155        psMemId id = psMemGetId();
    154156        psFits* fitsFile = psFitsOpen(TABLE_FILENAME, "w");
     
    203205            src->sky = TEST_BASE_SKY + (float) i;
    204206            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;
    206208            src->crNsigma = TEST_BASE_CR_N_SIGMA + (float) i;
    207209            src->extNsigma = TEST_BASE_EXT_N_SIGMA + (float) i;
     
    226228
    227229    // Call pmSourcesRead_PS1_DEV_1() with acceptable input parameters
    228     if (1) {
     230    {
    229231        psMemId id = psMemGetId();
    230232        psFits* fitsFile = psFitsOpen(tableFilename, "rw");
     
    304306        pmModelClassCleanup();
    305307        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    306         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    307308    }
    308309}
Note: See TracChangeset for help on using the changeset viewer.