IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2005, 10:58:51 AM (21 years ago)
Author:
desonia
Message:

modified psMetadata to use a special psMetadataType to signify duplicate
entries and added a flag to signify that duplicate entries are OK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psMetadata_02.c

    r3341 r3381  
    11/** @file  tst_psMetadata_02.c
    2 *
    3 *  @brief Test driver for psMetadata functions
    4 *
    5 *  This test driver contains the following tests for psMetadata:
    6 *     Test A - Allocate metadata items
    7 *     Test B - Attempt to create metadata item with null name
    8 *     Test C - Attempt to create metadata item with invalid type
    9 *     Test D - Allocate metadata
    10 *     Test E - Attempt to add metadata item to null metadata
    11 *     Test F - Attempt to add null metadata item to metadata
    12 *     Test G - Free psMetadata
    13 *
    14 *  @author  Ross Harman, MHPCC
    15 *
    16 *  @version $Revision: 1.12 $  $Name: not supported by cvs2svn $
    17 *  @date  $Date: 2005-02-28 23:34:10 $
    18 *
    19 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    20 *
    21 */
     2 *
     3 *  @brief Test driver for psMetadata functions
     4 *
     5 *  This test driver contains the following tests for psMetadata:
     6 *     Test A - Allocate metadata items
     7 *     Test B - Attempt to create metadata item with null name
     8 *     Test C - Attempt to create metadata item with invalid type
     9 *     Test D - Allocate metadata
     10 *     Test E - Attempt to add metadata item to null metadata
     11 *     Test F - Attempt to add null metadata item to metadata
     12 *     Test G - Free psMetadata
     13 *
     14 *  @author  Ross Harman, MHPCC
     15 *  @author  Robert DeSonia, MHPCC
     16 *
     17 *  @version $Revision: 1.13 $  $Name: not supported by cvs2svn $
     18 *  @date  $Date: 2005-03-07 20:58:50 $
     19 *
     20 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     21 *
     22 */
    2223
    2324#include <string.h>
     
    3132
    3233    switch (metadataItem->type) {
    33     case PS_META_LIST:
     34    case PS_META_MULTI:
    3435        printf("Key Value: %17c", ' ');
    3536        break;
     
    110111    printNegativeTestHeader(stdout,"psMetadata", "Test E - Attempt to add metadata item to null metadata",
    111112                            "Null metadata collection not allowed", 0);
    112     psMetadataAddItem(NULL, item1, PS_LIST_HEAD);
     113    psMetadataAddItem(NULL, item1, PS_LIST_HEAD, PS_META_DEFAULT);
    113114    printFooter(stdout, "psMetadata", "Test E - Attempt to add metadata item to null metadata", true);
    114115
     
    117118    printNegativeTestHeader(stdout,"psMetadata", "Test F - Attempt to add null metadata item to metadata",
    118119                            "Null metadata item not allowed", 0);
    119     psMetadataAddItem(metadata, NULL, PS_LIST_HEAD);
     120    psMetadataAddItem(metadata, NULL, PS_LIST_HEAD, PS_META_DEFAULT);
    120121    printFooter(stdout, "psMetadata", "Test F - Attempt to add null metadata item to metadata", true);
    121122
Note: See TracChangeset for help on using the changeset viewer.