IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2007, 6:43:37 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/metadatafromobject.c

    r12061 r12130  
    594594        bool            status;
    595595
    596         object = guidePendingExpRowAlloc("a string", -32, "a string");
     596        object = guidePendingExpRowAlloc(-64, "a string", "a string");
    597597        if (!object) {
    598598            exit(EXIT_FAILURE);
     
    606606        psFree(object);
    607607
     608            psFree(md);
     609            exit(EXIT_FAILURE);
     610        }
    608611        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    609612            psFree(md);
    610613            exit(EXIT_FAILURE);
    611614        }
    612         if (!psMetadataLookupS32(&status, md, "guide_version") == -32) {
    613             psFree(md);
    614             exit(EXIT_FAILURE);
    615         }
    616615        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    617616            psFree(md);
     
    627626        bool            status;
    628627
    629         object = chipPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string");
     628        object = chipPendingExpRowAlloc(-64, "a string", -64, "a string", "a string", "a string", "a string");
    630629        if (!object) {
    631630            exit(EXIT_FAILURE);
     
    639638        psFree(object);
    640639
     640            psFree(md);
     641            exit(EXIT_FAILURE);
     642        }
    641643        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    642644            psFree(md);
    643645            exit(EXIT_FAILURE);
    644646        }
    645         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    646             psFree(md);
    647             exit(EXIT_FAILURE);
    648         }
    649         if (!psMetadataLookupS32(&status, md, "guide_version") == -32) {
    650647            psFree(md);
    651648            exit(EXIT_FAILURE);
     
    676673        bool            status;
    677674
    678         object = chipPendingImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string");
     675        object = chipPendingImfileRowAlloc(-64, "a string", -64, "a string", "a string", "a string");
    679676        if (!object) {
    680677            exit(EXIT_FAILURE);
     
    688685        psFree(object);
    689686
     687            psFree(md);
     688            exit(EXIT_FAILURE);
     689        }
    690690        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    691691            psFree(md);
    692692            exit(EXIT_FAILURE);
    693693        }
    694         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    695             psFree(md);
    696             exit(EXIT_FAILURE);
    697         }
    698         if (!psMetadataLookupS32(&status, md, "guide_version") == -32) {
    699694            psFree(md);
    700695            exit(EXIT_FAILURE);
     
    721716        bool            status;
    722717
    723         object = chipProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string");
     718        object = chipProcessedExpRowAlloc(-64, "a string", -64, "a string", "a string", "a string");
    724719        if (!object) {
    725720            exit(EXIT_FAILURE);
     
    733728        psFree(object);
    734729
     730            psFree(md);
     731            exit(EXIT_FAILURE);
     732        }
    735733        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    736734            psFree(md);
    737735            exit(EXIT_FAILURE);
    738736        }
    739         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    740             psFree(md);
    741             exit(EXIT_FAILURE);
    742         }
    743         if (!psMetadataLookupS32(&status, md, "guide_version") == -32) {
    744737            psFree(md);
    745738            exit(EXIT_FAILURE);
     
    791784        bool            status;
    792785
    793         object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
     786        object = chipProcessedImfileRowAlloc(-64, "a string", -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
    794787        if (!object) {
    795788            exit(EXIT_FAILURE);
     
    803796        psFree(object);
    804797
     798            psFree(md);
     799            exit(EXIT_FAILURE);
     800        }
    805801        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    806802            psFree(md);
    807803            exit(EXIT_FAILURE);
    808804        }
    809         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    810             psFree(md);
    811             exit(EXIT_FAILURE);
    812         }
    813         if (!psMetadataLookupS32(&status, md, "guide_version") == -32) {
    814805            psFree(md);
    815806            exit(EXIT_FAILURE);
     
    855846        bool            status;
    856847
    857         object = camPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string");
     848        object = camPendingExpRowAlloc(-64, -64, "a string", "a string", "a string");
    858849        if (!object) {
    859850            exit(EXIT_FAILURE);
     
    867858        psFree(object);
    868859
     860            psFree(md);
     861            exit(EXIT_FAILURE);
     862        }
     863            psFree(md);
     864            exit(EXIT_FAILURE);
     865        }
     866        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     867            psFree(md);
     868            exit(EXIT_FAILURE);
     869        }
     870        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     871            psFree(md);
     872            exit(EXIT_FAILURE);
     873        }
     874        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     875            psFree(md);
     876            exit(EXIT_FAILURE);
     877        }
     878
     879        psFree(md);
     880    }
     881
     882    {
     883        psMetadata      *md;
     884        camProcessedExpRow *object;
     885        bool            status;
     886
     887        object = camProcessedExpRowAlloc(-64, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string");
     888        if (!object) {
     889            exit(EXIT_FAILURE);
     890        }
     891
     892        md = camProcessedExpMetadataFromObject(object);
     893        if (!md) {
     894            exit(EXIT_FAILURE);
     895        }
     896
     897        psFree(object);
     898
     899            psFree(md);
     900            exit(EXIT_FAILURE);
     901        }
     902            psFree(md);
     903            exit(EXIT_FAILURE);
     904        }
     905        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     906            psFree(md);
     907            exit(EXIT_FAILURE);
     908        }
     909        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     910            psFree(md);
     911            exit(EXIT_FAILURE);
     912        }
     913        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     914            psFree(md);
     915            exit(EXIT_FAILURE);
     916        }
     917        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     918            psFree(md);
     919            exit(EXIT_FAILURE);
     920        }
     921        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     922            psFree(md);
     923            exit(EXIT_FAILURE);
     924        }
     925        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     926            psFree(md);
     927            exit(EXIT_FAILURE);
     928        }
     929        if (!psMetadataLookupF32(&status, md, "sigma_ra") == 32.32) {
     930            psFree(md);
     931            exit(EXIT_FAILURE);
     932        }
     933        if (!psMetadataLookupF32(&status, md, "sigma_dec") == 32.32) {
     934            psFree(md);
     935            exit(EXIT_FAILURE);
     936        }
     937        if (!psMetadataLookupS32(&status, md, "nastro") == -32) {
     938            psFree(md);
     939            exit(EXIT_FAILURE);
     940        }
     941        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     942            psFree(md);
     943            exit(EXIT_FAILURE);
     944        }
     945        if (!psMetadataLookupF32(&status, md, "zp_mean") == 32.32) {
     946            psFree(md);
     947            exit(EXIT_FAILURE);
     948        }
     949        if (!psMetadataLookupF32(&status, md, "zp_stdev") == 32.32) {
     950            psFree(md);
     951            exit(EXIT_FAILURE);
     952        }
     953            psFree(md);
     954            exit(EXIT_FAILURE);
     955        }
     956        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     957            psFree(md);
     958            exit(EXIT_FAILURE);
     959        }
     960        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     961            psFree(md);
     962            exit(EXIT_FAILURE);
     963        }
     964
     965        psFree(md);
     966    }
     967
     968    {
     969        psMetadata      *md;
     970        camMaskRow      *object;
     971        bool            status;
     972
     973        object = camMaskRowAlloc("a string");
     974        if (!object) {
     975            exit(EXIT_FAILURE);
     976        }
     977
     978        md = camMaskMetadataFromObject(object);
     979        if (!md) {
     980            exit(EXIT_FAILURE);
     981        }
     982
     983        psFree(object);
     984
     985        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     986            psFree(md);
     987            exit(EXIT_FAILURE);
     988        }
     989
     990        psFree(md);
     991    }
     992
     993    {
     994        psMetadata      *md;
     995        detRunRow       *object;
     996        bool            status;
     997
     998        object = detRunRowAlloc(-64, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32);
     999        if (!object) {
     1000            exit(EXIT_FAILURE);
     1001        }
     1002
     1003        md = detRunMetadataFromObject(object);
     1004        if (!md) {
     1005            exit(EXIT_FAILURE);
     1006        }
     1007
     1008        psFree(object);
     1009
     1010            psFree(md);
     1011            exit(EXIT_FAILURE);
     1012        }
     1013        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1014            psFree(md);
     1015            exit(EXIT_FAILURE);
     1016        }
     1017        if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
     1018            psFree(md);
     1019            exit(EXIT_FAILURE);
     1020        }
     1021        if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) {
     1022            psFree(md);
     1023            exit(EXIT_FAILURE);
     1024        }
     1025        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1026            psFree(md);
     1027            exit(EXIT_FAILURE);
     1028        }
     1029        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     1030            psFree(md);
     1031            exit(EXIT_FAILURE);
     1032        }
     1033        if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) {
     1034            psFree(md);
     1035            exit(EXIT_FAILURE);
     1036        }
     1037        if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) {
     1038            psFree(md);
     1039            exit(EXIT_FAILURE);
     1040        }
     1041        if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {
     1042            psFree(md);
     1043            exit(EXIT_FAILURE);
     1044        }
     1045        if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
     1046            psFree(md);
     1047            exit(EXIT_FAILURE);
     1048        }
     1049        if (!psMetadataLookupF32(&status, md, "airmass_min") == 32.32) {
     1050            psFree(md);
     1051            exit(EXIT_FAILURE);
     1052        }
     1053        if (!psMetadataLookupF32(&status, md, "airmass_max") == 32.32) {
     1054            psFree(md);
     1055            exit(EXIT_FAILURE);
     1056        }
     1057        if (!psMetadataLookupF32(&status, md, "exp_time_min") == 32.32) {
     1058            psFree(md);
     1059            exit(EXIT_FAILURE);
     1060        }
     1061        if (!psMetadataLookupF32(&status, md, "exp_time_max") == 32.32) {
     1062            psFree(md);
     1063            exit(EXIT_FAILURE);
     1064        }
     1065        if (!psMetadataLookupF32(&status, md, "ccd_temp_min") == 32.32) {
     1066            psFree(md);
     1067            exit(EXIT_FAILURE);
     1068        }
     1069        if (!psMetadataLookupF32(&status, md, "ccd_temp_max") == 32.32) {
     1070            psFree(md);
     1071            exit(EXIT_FAILURE);
     1072        }
     1073        if (!psMetadataLookupF64(&status, md, "posang_min") == 64.64) {
     1074            psFree(md);
     1075            exit(EXIT_FAILURE);
     1076        }
     1077        if (!psMetadataLookupF64(&status, md, "posang_max") == 64.64) {
     1078            psFree(md);
     1079            exit(EXIT_FAILURE);
     1080        }
     1081            psFree(md);
     1082            exit(EXIT_FAILURE);
     1083        }
     1084            psFree(md);
     1085            exit(EXIT_FAILURE);
     1086        }
     1087            psFree(md);
     1088            exit(EXIT_FAILURE);
     1089        }
     1090            psFree(md);
     1091            exit(EXIT_FAILURE);
     1092        }
     1093            psFree(md);
     1094            exit(EXIT_FAILURE);
     1095        }
     1096        if (!psMetadataLookupF32(&status, md, "solang_min") == 32.32) {
     1097            psFree(md);
     1098            exit(EXIT_FAILURE);
     1099        }
     1100        if (!psMetadataLookupF32(&status, md, "solang_max") == 32.32) {
     1101            psFree(md);
     1102            exit(EXIT_FAILURE);
     1103        }
     1104        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     1105            psFree(md);
     1106            exit(EXIT_FAILURE);
     1107        }
     1108        if (!psMetadataLookupS32(&status, md, "parent") == -32) {
     1109            psFree(md);
     1110            exit(EXIT_FAILURE);
     1111        }
     1112
     1113        psFree(md);
     1114    }
     1115
     1116    {
     1117        psMetadata      *md;
     1118        detInputExpRow  *object;
     1119        bool            status;
     1120
     1121        object = detInputExpRowAlloc(-64, -32, "a string", true);
     1122        if (!object) {
     1123            exit(EXIT_FAILURE);
     1124        }
     1125
     1126        md = detInputExpMetadataFromObject(object);
     1127        if (!md) {
     1128            exit(EXIT_FAILURE);
     1129        }
     1130
     1131        psFree(object);
     1132
     1133            psFree(md);
     1134            exit(EXIT_FAILURE);
     1135        }
     1136        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1137            psFree(md);
     1138            exit(EXIT_FAILURE);
     1139        }
    8691140        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    8701141            psFree(md);
    8711142            exit(EXIT_FAILURE);
    8721143        }
    873         if (!psMetadataLookupS32(&status, md, "cam_version") == -32) {
    874             psFree(md);
    875             exit(EXIT_FAILURE);
    876         }
    877         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    878             psFree(md);
    879             exit(EXIT_FAILURE);
    880         }
    881         if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
    882             psFree(md);
    883             exit(EXIT_FAILURE);
    884         }
    885         if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     1144        if (!psMetadataLookupBool(&status, md, "include") == true) {
     1145            psFree(md);
     1146            exit(EXIT_FAILURE);
     1147        }
     1148
     1149        psFree(md);
     1150    }
     1151
     1152    {
     1153        psMetadata      *md;
     1154        detProcessedImfileRow *object;
     1155        bool            status;
     1156
     1157        object = detProcessedImfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
     1158        if (!object) {
     1159            exit(EXIT_FAILURE);
     1160        }
     1161
     1162        md = detProcessedImfileMetadataFromObject(object);
     1163        if (!md) {
     1164            exit(EXIT_FAILURE);
     1165        }
     1166
     1167        psFree(object);
     1168
     1169            psFree(md);
     1170            exit(EXIT_FAILURE);
     1171        }
     1172        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1173            psFree(md);
     1174            exit(EXIT_FAILURE);
     1175        }
     1176        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1177            psFree(md);
     1178            exit(EXIT_FAILURE);
     1179        }
     1180        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1181            psFree(md);
     1182            exit(EXIT_FAILURE);
     1183        }
     1184        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1185            psFree(md);
     1186            exit(EXIT_FAILURE);
     1187        }
     1188        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1189            psFree(md);
     1190            exit(EXIT_FAILURE);
     1191        }
     1192        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1193            psFree(md);
     1194            exit(EXIT_FAILURE);
     1195        }
     1196        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1197            psFree(md);
     1198            exit(EXIT_FAILURE);
     1199        }
     1200        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1201            psFree(md);
     1202            exit(EXIT_FAILURE);
     1203        }
     1204            psFree(md);
     1205            exit(EXIT_FAILURE);
     1206        }
     1207
     1208        psFree(md);
     1209    }
     1210
     1211    {
     1212        psMetadata      *md;
     1213        detProcessedExpRow *object;
     1214        bool            status;
     1215
     1216        object = detProcessedExpRowAlloc(-64, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
     1217        if (!object) {
     1218            exit(EXIT_FAILURE);
     1219        }
     1220
     1221        md = detProcessedExpMetadataFromObject(object);
     1222        if (!md) {
     1223            exit(EXIT_FAILURE);
     1224        }
     1225
     1226        psFree(object);
     1227
     1228            psFree(md);
     1229            exit(EXIT_FAILURE);
     1230        }
     1231        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1232            psFree(md);
     1233            exit(EXIT_FAILURE);
     1234        }
     1235        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1236            psFree(md);
     1237            exit(EXIT_FAILURE);
     1238        }
     1239        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1240            psFree(md);
     1241            exit(EXIT_FAILURE);
     1242        }
     1243        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1244            psFree(md);
     1245            exit(EXIT_FAILURE);
     1246        }
     1247        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1248            psFree(md);
     1249            exit(EXIT_FAILURE);
     1250        }
     1251        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1252            psFree(md);
     1253            exit(EXIT_FAILURE);
     1254        }
     1255            psFree(md);
     1256            exit(EXIT_FAILURE);
     1257        }
     1258
     1259        psFree(md);
     1260    }
     1261
     1262    {
     1263        psMetadata      *md;
     1264        detStackedImfileRow *object;
     1265        bool            status;
     1266
     1267        object = detStackedImfileRowAlloc(-64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
     1268        if (!object) {
     1269            exit(EXIT_FAILURE);
     1270        }
     1271
     1272        md = detStackedImfileMetadataFromObject(object);
     1273        if (!md) {
     1274            exit(EXIT_FAILURE);
     1275        }
     1276
     1277        psFree(object);
     1278
     1279            psFree(md);
     1280            exit(EXIT_FAILURE);
     1281        }
     1282        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1283            psFree(md);
     1284            exit(EXIT_FAILURE);
     1285        }
     1286        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1287            psFree(md);
     1288            exit(EXIT_FAILURE);
     1289        }
     1290        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1291            psFree(md);
     1292            exit(EXIT_FAILURE);
     1293        }
     1294        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1295            psFree(md);
     1296            exit(EXIT_FAILURE);
     1297        }
     1298        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1299            psFree(md);
     1300            exit(EXIT_FAILURE);
     1301        }
     1302        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1303            psFree(md);
     1304            exit(EXIT_FAILURE);
     1305        }
     1306        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1307            psFree(md);
     1308            exit(EXIT_FAILURE);
     1309        }
     1310            psFree(md);
     1311            exit(EXIT_FAILURE);
     1312        }
     1313
     1314        psFree(md);
     1315    }
     1316
     1317    {
     1318        psMetadata      *md;
     1319        detNormalizedStatImfileRow *object;
     1320        bool            status;
     1321
     1322        object = detNormalizedStatImfileRowAlloc(-64, -32, "a string", 32.32, -16);
     1323        if (!object) {
     1324            exit(EXIT_FAILURE);
     1325        }
     1326
     1327        md = detNormalizedStatImfileMetadataFromObject(object);
     1328        if (!md) {
     1329            exit(EXIT_FAILURE);
     1330        }
     1331
     1332        psFree(object);
     1333
     1334            psFree(md);
     1335            exit(EXIT_FAILURE);
     1336        }
     1337        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1338            psFree(md);
     1339            exit(EXIT_FAILURE);
     1340        }
     1341        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1342            psFree(md);
     1343            exit(EXIT_FAILURE);
     1344        }
     1345        if (!psMetadataLookupF32(&status, md, "norm") == 32.32) {
     1346            psFree(md);
     1347            exit(EXIT_FAILURE);
     1348        }
     1349            psFree(md);
     1350            exit(EXIT_FAILURE);
     1351        }
     1352
     1353        psFree(md);
     1354    }
     1355
     1356    {
     1357        psMetadata      *md;
     1358        detNormalizedImfileRow *object;
     1359        bool            status;
     1360
     1361        object = detNormalizedImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
     1362        if (!object) {
     1363            exit(EXIT_FAILURE);
     1364        }
     1365
     1366        md = detNormalizedImfileMetadataFromObject(object);
     1367        if (!md) {
     1368            exit(EXIT_FAILURE);
     1369        }
     1370
     1371        psFree(object);
     1372
     1373            psFree(md);
     1374            exit(EXIT_FAILURE);
     1375        }
     1376        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1377            psFree(md);
     1378            exit(EXIT_FAILURE);
     1379        }
     1380        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1381            psFree(md);
     1382            exit(EXIT_FAILURE);
     1383        }
     1384        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1385            psFree(md);
     1386            exit(EXIT_FAILURE);
     1387        }
     1388        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1389            psFree(md);
     1390            exit(EXIT_FAILURE);
     1391        }
     1392        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1393            psFree(md);
     1394            exit(EXIT_FAILURE);
     1395        }
     1396        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1397            psFree(md);
     1398            exit(EXIT_FAILURE);
     1399        }
     1400        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1401            psFree(md);
     1402            exit(EXIT_FAILURE);
     1403        }
     1404            psFree(md);
     1405            exit(EXIT_FAILURE);
     1406        }
     1407
     1408        psFree(md);
     1409    }
     1410
     1411    {
     1412        psMetadata      *md;
     1413        detNormalizedExpRow *object;
     1414        bool            status;
     1415
     1416        object = detNormalizedExpRowAlloc(-64, -32, "a string", 64.64, 64.64, 64.64, "a string", -16);
     1417        if (!object) {
     1418            exit(EXIT_FAILURE);
     1419        }
     1420
     1421        md = detNormalizedExpMetadataFromObject(object);
     1422        if (!md) {
     1423            exit(EXIT_FAILURE);
     1424        }
     1425
     1426        psFree(object);
     1427
     1428            psFree(md);
     1429            exit(EXIT_FAILURE);
     1430        }
     1431        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1432            psFree(md);
     1433            exit(EXIT_FAILURE);
     1434        }
     1435        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1436            psFree(md);
     1437            exit(EXIT_FAILURE);
     1438        }
     1439        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1440            psFree(md);
     1441            exit(EXIT_FAILURE);
     1442        }
     1443        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1444            psFree(md);
     1445            exit(EXIT_FAILURE);
     1446        }
     1447        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1448            psFree(md);
     1449            exit(EXIT_FAILURE);
     1450        }
     1451        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1452            psFree(md);
     1453            exit(EXIT_FAILURE);
     1454        }
     1455            psFree(md);
     1456            exit(EXIT_FAILURE);
     1457        }
     1458
     1459        psFree(md);
     1460    }
     1461
     1462    {
     1463        psMetadata      *md;
     1464        detResidImfileRow *object;
     1465        bool            status;
     1466
     1467        object = detResidImfileRowAlloc(-64, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
     1468        if (!object) {
     1469            exit(EXIT_FAILURE);
     1470        }
     1471
     1472        md = detResidImfileMetadataFromObject(object);
     1473        if (!md) {
     1474            exit(EXIT_FAILURE);
     1475        }
     1476
     1477        psFree(object);
     1478
     1479            psFree(md);
     1480            exit(EXIT_FAILURE);
     1481        }
     1482        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1483            psFree(md);
     1484            exit(EXIT_FAILURE);
     1485        }
     1486        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1487            psFree(md);
     1488            exit(EXIT_FAILURE);
     1489        }
     1490        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1491            psFree(md);
     1492            exit(EXIT_FAILURE);
     1493        }
     1494        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1495            psFree(md);
     1496            exit(EXIT_FAILURE);
     1497        }
     1498        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1499            psFree(md);
     1500            exit(EXIT_FAILURE);
     1501        }
     1502        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1503            psFree(md);
     1504            exit(EXIT_FAILURE);
     1505        }
     1506        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1507            psFree(md);
     1508            exit(EXIT_FAILURE);
     1509        }
     1510        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1511            psFree(md);
     1512            exit(EXIT_FAILURE);
     1513        }
     1514        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1515            psFree(md);
     1516            exit(EXIT_FAILURE);
     1517        }
     1518            psFree(md);
     1519            exit(EXIT_FAILURE);
     1520        }
     1521
     1522        psFree(md);
     1523    }
     1524
     1525    {
     1526        psMetadata      *md;
     1527        detResidExpRow  *object;
     1528        bool            status;
     1529
     1530        object = detResidExpRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16);
     1531        if (!object) {
     1532            exit(EXIT_FAILURE);
     1533        }
     1534
     1535        md = detResidExpMetadataFromObject(object);
     1536        if (!md) {
     1537            exit(EXIT_FAILURE);
     1538        }
     1539
     1540        psFree(object);
     1541
     1542            psFree(md);
     1543            exit(EXIT_FAILURE);
     1544        }
     1545        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1546            psFree(md);
     1547            exit(EXIT_FAILURE);
     1548        }
     1549        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1550            psFree(md);
     1551            exit(EXIT_FAILURE);
     1552        }
     1553        if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
     1554            psFree(md);
     1555            exit(EXIT_FAILURE);
     1556        }
     1557        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1558            psFree(md);
     1559            exit(EXIT_FAILURE);
     1560        }
     1561        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1562            psFree(md);
     1563            exit(EXIT_FAILURE);
     1564        }
     1565        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1566            psFree(md);
     1567            exit(EXIT_FAILURE);
     1568        }
     1569        if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
     1570            psFree(md);
     1571            exit(EXIT_FAILURE);
     1572        }
     1573        if (!psMetadataLookupBool(&status, md, "accept") == true) {
     1574            psFree(md);
     1575            exit(EXIT_FAILURE);
     1576        }
     1577            psFree(md);
     1578            exit(EXIT_FAILURE);
     1579        }
     1580
     1581        psFree(md);
     1582    }
     1583
     1584    {
     1585        psMetadata      *md;
     1586        detRunSummaryRow *object;
     1587        bool            status;
     1588
     1589        object = detRunSummaryRowAlloc(-64, -32, 64.64, 64.64, 64.64, true, -16);
     1590        if (!object) {
     1591            exit(EXIT_FAILURE);
     1592        }
     1593
     1594        md = detRunSummaryMetadataFromObject(object);
     1595        if (!md) {
     1596            exit(EXIT_FAILURE);
     1597        }
     1598
     1599        psFree(object);
     1600
     1601            psFree(md);
     1602            exit(EXIT_FAILURE);
     1603        }
     1604        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1605            psFree(md);
     1606            exit(EXIT_FAILURE);
     1607        }
     1608        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1609            psFree(md);
     1610            exit(EXIT_FAILURE);
     1611        }
     1612        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1613            psFree(md);
     1614            exit(EXIT_FAILURE);
     1615        }
     1616        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1617            psFree(md);
     1618            exit(EXIT_FAILURE);
     1619        }
     1620        if (!psMetadataLookupBool(&status, md, "accept") == true) {
     1621            psFree(md);
     1622            exit(EXIT_FAILURE);
     1623        }
     1624            psFree(md);
     1625            exit(EXIT_FAILURE);
     1626        }
     1627
     1628        psFree(md);
     1629    }
     1630
     1631    {
     1632        psMetadata      *md;
     1633        warpRunRow      *object;
     1634        bool            status;
     1635
     1636        object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     1637        if (!object) {
     1638            exit(EXIT_FAILURE);
     1639        }
     1640
     1641        md = warpRunMetadataFromObject(object);
     1642        if (!md) {
     1643            exit(EXIT_FAILURE);
     1644        }
     1645
     1646        psFree(object);
     1647
     1648            psFree(md);
     1649            exit(EXIT_FAILURE);
     1650        }
     1651        if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) {
     1652            psFree(md);
     1653            exit(EXIT_FAILURE);
     1654        }
     1655        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1656            psFree(md);
     1657            exit(EXIT_FAILURE);
     1658        }
     1659        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    8861660            psFree(md);
    8871661            exit(EXIT_FAILURE);
     
    8911665            exit(EXIT_FAILURE);
    8921666        }
    893 
    894         psFree(md);
    895     }
    896 
    897     {
    898         psMetadata      *md;
    899         camProcessedExpRow *object;
    900         bool            status;
    901 
    902         object = camProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string");
    903         if (!object) {
    904             exit(EXIT_FAILURE);
    905         }
    906 
    907         md = camProcessedExpMetadataFromObject(object);
    908         if (!md) {
    909             exit(EXIT_FAILURE);
    910         }
    911 
    912         psFree(object);
    913 
    914         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    915             psFree(md);
    916             exit(EXIT_FAILURE);
    917         }
    918         if (!psMetadataLookupS32(&status, md, "cam_version") == -32) {
    919             psFree(md);
    920             exit(EXIT_FAILURE);
    921         }
    922         if (!psMetadataLookupS32(&status, md, "chip_version") == -32) {
    923             psFree(md);
    924             exit(EXIT_FAILURE);
    925         }
    926         if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     1667            psFree(md);
     1668            exit(EXIT_FAILURE);
     1669        }
     1670
     1671        psFree(md);
     1672    }
     1673
     1674    {
     1675        psMetadata      *md;
     1676        warpInputExpRow *object;
     1677        bool            status;
     1678
     1679        object = warpInputExpRowAlloc(-64, -64, true);
     1680        if (!object) {
     1681            exit(EXIT_FAILURE);
     1682        }
     1683
     1684        md = warpInputExpMetadataFromObject(object);
     1685        if (!md) {
     1686            exit(EXIT_FAILURE);
     1687        }
     1688
     1689        psFree(object);
     1690
     1691            psFree(md);
     1692            exit(EXIT_FAILURE);
     1693        }
     1694            psFree(md);
     1695            exit(EXIT_FAILURE);
     1696        }
     1697        if (!psMetadataLookupBool(&status, md, "magiced") == true) {
     1698            psFree(md);
     1699            exit(EXIT_FAILURE);
     1700        }
     1701
     1702        psFree(md);
     1703    }
     1704
     1705    {
     1706        psMetadata      *md;
     1707        warpSkyCellMapRow *object;
     1708        bool            status;
     1709
     1710        object = warpSkyCellMapRowAlloc(-64, "a string", "a string", -64, "a string", -16);
     1711        if (!object) {
     1712            exit(EXIT_FAILURE);
     1713        }
     1714
     1715        md = warpSkyCellMapMetadataFromObject(object);
     1716        if (!md) {
     1717            exit(EXIT_FAILURE);
     1718        }
     1719
     1720        psFree(object);
     1721
     1722            psFree(md);
     1723            exit(EXIT_FAILURE);
     1724        }
     1725        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1726            psFree(md);
     1727            exit(EXIT_FAILURE);
     1728        }
     1729        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1730            psFree(md);
     1731            exit(EXIT_FAILURE);
     1732        }
     1733            psFree(md);
     1734            exit(EXIT_FAILURE);
     1735        }
     1736        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1737            psFree(md);
     1738            exit(EXIT_FAILURE);
     1739        }
     1740            psFree(md);
     1741            exit(EXIT_FAILURE);
     1742        }
     1743
     1744        psFree(md);
     1745    }
     1746
     1747    {
     1748        psMetadata      *md;
     1749        warpSkyfileRow  *object;
     1750        bool            status;
     1751
     1752        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", 64.64, 64.64);
     1753        if (!object) {
     1754            exit(EXIT_FAILURE);
     1755        }
     1756
     1757        md = warpSkyfileMetadataFromObject(object);
     1758        if (!md) {
     1759            exit(EXIT_FAILURE);
     1760        }
     1761
     1762        psFree(object);
     1763
     1764            psFree(md);
     1765            exit(EXIT_FAILURE);
     1766        }
     1767        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1768            psFree(md);
     1769            exit(EXIT_FAILURE);
     1770        }
     1771        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    9271772            psFree(md);
    9281773            exit(EXIT_FAILURE);
     
    9321777            exit(EXIT_FAILURE);
    9331778        }
    934         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    935             psFree(md);
    936             exit(EXIT_FAILURE);
    937         }
    9381779        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    9391780            psFree(md);
     
    9441785            exit(EXIT_FAILURE);
    9451786        }
    946         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    947             psFree(md);
    948             exit(EXIT_FAILURE);
    949         }
    950         if (!psMetadataLookupF32(&status, md, "sigma_ra") == 32.32) {
    951             psFree(md);
    952             exit(EXIT_FAILURE);
    953         }
    954         if (!psMetadataLookupF32(&status, md, "sigma_dec") == 32.32) {
    955             psFree(md);
    956             exit(EXIT_FAILURE);
    957         }
    958         if (!psMetadataLookupS32(&status, md, "nastro") == -32) {
    959             psFree(md);
    960             exit(EXIT_FAILURE);
    961         }
    962         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    963             psFree(md);
    964             exit(EXIT_FAILURE);
    965         }
    966         if (!psMetadataLookupF32(&status, md, "zp_mean") == 32.32) {
    967             psFree(md);
    968             exit(EXIT_FAILURE);
    969         }
    970         if (!psMetadataLookupF32(&status, md, "zp_stdev") == 32.32) {
    971             psFree(md);
    972             exit(EXIT_FAILURE);
    973         }
    974             psFree(md);
    975             exit(EXIT_FAILURE);
    976         }
    977         if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     1787
     1788        psFree(md);
     1789    }
     1790
     1791    {
     1792        psMetadata      *md;
     1793        diffRunRow      *object;
     1794        bool            status;
     1795
     1796        object = diffRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
     1797        if (!object) {
     1798            exit(EXIT_FAILURE);
     1799        }
     1800
     1801        md = diffRunMetadataFromObject(object);
     1802        if (!md) {
     1803            exit(EXIT_FAILURE);
     1804        }
     1805
     1806        psFree(object);
     1807
     1808            psFree(md);
     1809            exit(EXIT_FAILURE);
     1810        }
     1811        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1812            psFree(md);
     1813            exit(EXIT_FAILURE);
     1814        }
     1815        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    9781816            psFree(md);
    9791817            exit(EXIT_FAILURE);
     
    9831821            exit(EXIT_FAILURE);
    9841822        }
    985 
    986         psFree(md);
    987     }
    988 
    989     {
    990         psMetadata      *md;
    991         camMaskRow      *object;
    992         bool            status;
    993 
    994         object = camMaskRowAlloc("a string");
    995         if (!object) {
    996             exit(EXIT_FAILURE);
    997         }
    998 
    999         md = camMaskMetadataFromObject(object);
    1000         if (!md) {
    1001             exit(EXIT_FAILURE);
    1002         }
    1003 
    1004         psFree(object);
    1005 
    1006         if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
    1007             psFree(md);
    1008             exit(EXIT_FAILURE);
    1009         }
    1010 
    1011         psFree(md);
    1012     }
    1013 
    1014     {
    1015         psMetadata      *md;
    1016         detRunRow       *object;
    1017         bool            status;
    1018 
    1019         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32);
    1020         if (!object) {
    1021             exit(EXIT_FAILURE);
    1022         }
    1023 
    1024         md = detRunMetadataFromObject(object);
    1025         if (!md) {
    1026             exit(EXIT_FAILURE);
    1027         }
    1028 
    1029         psFree(object);
    1030 
    1031         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1032             psFree(md);
    1033             exit(EXIT_FAILURE);
    1034         }
    1035         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1036             psFree(md);
    1037             exit(EXIT_FAILURE);
    1038         }
    1039         if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
    1040             psFree(md);
    1041             exit(EXIT_FAILURE);
    1042         }
    1043         if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) {
     1823            psFree(md);
     1824            exit(EXIT_FAILURE);
     1825        }
     1826        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1827            psFree(md);
     1828            exit(EXIT_FAILURE);
     1829        }
     1830        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1831            psFree(md);
     1832            exit(EXIT_FAILURE);
     1833        }
     1834
     1835        psFree(md);
     1836    }
     1837
     1838    {
     1839        psMetadata      *md;
     1840        diffInputSkyfileRow *object;
     1841        bool            status;
     1842
     1843        object = diffInputSkyfileRowAlloc(-64, -64, "a string", "a string", "a string", true);
     1844        if (!object) {
     1845            exit(EXIT_FAILURE);
     1846        }
     1847
     1848        md = diffInputSkyfileMetadataFromObject(object);
     1849        if (!md) {
     1850            exit(EXIT_FAILURE);
     1851        }
     1852
     1853        psFree(object);
     1854
     1855            psFree(md);
     1856            exit(EXIT_FAILURE);
     1857        }
     1858            psFree(md);
     1859            exit(EXIT_FAILURE);
     1860        }
     1861        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1862            psFree(md);
     1863            exit(EXIT_FAILURE);
     1864        }
     1865        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1866            psFree(md);
     1867            exit(EXIT_FAILURE);
     1868        }
     1869        if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) {
     1870            psFree(md);
     1871            exit(EXIT_FAILURE);
     1872        }
     1873        if (!psMetadataLookupBool(&status, md, "template") == true) {
     1874            psFree(md);
     1875            exit(EXIT_FAILURE);
     1876        }
     1877
     1878        psFree(md);
     1879    }
     1880
     1881    {
     1882        psMetadata      *md;
     1883        diffSkyfileRow  *object;
     1884        bool            status;
     1885
     1886        object = diffSkyfileRowAlloc(-64, "a string", 64.64, 64.64);
     1887        if (!object) {
     1888            exit(EXIT_FAILURE);
     1889        }
     1890
     1891        md = diffSkyfileMetadataFromObject(object);
     1892        if (!md) {
     1893            exit(EXIT_FAILURE);
     1894        }
     1895
     1896        psFree(object);
     1897
     1898            psFree(md);
     1899            exit(EXIT_FAILURE);
     1900        }
     1901        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1902            psFree(md);
     1903            exit(EXIT_FAILURE);
     1904        }
     1905        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1906            psFree(md);
     1907            exit(EXIT_FAILURE);
     1908        }
     1909        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     1910            psFree(md);
     1911            exit(EXIT_FAILURE);
     1912        }
     1913
     1914        psFree(md);
     1915    }
     1916
     1917    {
     1918        psMetadata      *md;
     1919        stackRunRow     *object;
     1920        bool            status;
     1921
     1922        object = stackRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
     1923        if (!object) {
     1924            exit(EXIT_FAILURE);
     1925        }
     1926
     1927        md = stackRunMetadataFromObject(object);
     1928        if (!md) {
     1929            exit(EXIT_FAILURE);
     1930        }
     1931
     1932        psFree(object);
     1933
    10441934            psFree(md);
    10451935            exit(EXIT_FAILURE);
     
    10531943            exit(EXIT_FAILURE);
    10541944        }
    1055         if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) {
    1056             psFree(md);
    1057             exit(EXIT_FAILURE);
    1058         }
    1059         if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) {
    1060             psFree(md);
    1061             exit(EXIT_FAILURE);
    1062         }
    1063         if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {
    1064             psFree(md);
    1065             exit(EXIT_FAILURE);
    1066         }
    1067         if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
    1068             psFree(md);
    1069             exit(EXIT_FAILURE);
    1070         }
    1071         if (!psMetadataLookupF32(&status, md, "airmass_min") == 32.32) {
    1072             psFree(md);
    1073             exit(EXIT_FAILURE);
    1074         }
    1075         if (!psMetadataLookupF32(&status, md, "airmass_max") == 32.32) {
    1076             psFree(md);
    1077             exit(EXIT_FAILURE);
    1078         }
    1079         if (!psMetadataLookupF32(&status, md, "exp_time_min") == 32.32) {
    1080             psFree(md);
    1081             exit(EXIT_FAILURE);
    1082         }
    1083         if (!psMetadataLookupF32(&status, md, "exp_time_max") == 32.32) {
    1084             psFree(md);
    1085             exit(EXIT_FAILURE);
    1086         }
    1087         if (!psMetadataLookupF32(&status, md, "ccd_temp_min") == 32.32) {
    1088             psFree(md);
    1089             exit(EXIT_FAILURE);
    1090         }
    1091         if (!psMetadataLookupF32(&status, md, "ccd_temp_max") == 32.32) {
    1092             psFree(md);
    1093             exit(EXIT_FAILURE);
    1094         }
    1095         if (!psMetadataLookupF64(&status, md, "posang_min") == 64.64) {
    1096             psFree(md);
    1097             exit(EXIT_FAILURE);
    1098         }
    1099         if (!psMetadataLookupF64(&status, md, "posang_max") == 64.64) {
    1100             psFree(md);
    1101             exit(EXIT_FAILURE);
    1102         }
    1103             psFree(md);
    1104             exit(EXIT_FAILURE);
    1105         }
    1106             psFree(md);
    1107             exit(EXIT_FAILURE);
    1108         }
    1109             psFree(md);
    1110             exit(EXIT_FAILURE);
    1111         }
    1112             psFree(md);
    1113             exit(EXIT_FAILURE);
    1114         }
    1115             psFree(md);
    1116             exit(EXIT_FAILURE);
    1117         }
    1118         if (!psMetadataLookupF32(&status, md, "solang_min") == 32.32) {
    1119             psFree(md);
    1120             exit(EXIT_FAILURE);
    1121         }
    1122         if (!psMetadataLookupF32(&status, md, "solang_max") == 32.32) {
    1123             psFree(md);
    1124             exit(EXIT_FAILURE);
    1125         }
    1126         if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
    1127             psFree(md);
    1128             exit(EXIT_FAILURE);
    1129         }
    1130         if (!psMetadataLookupS32(&status, md, "parent") == -32) {
    1131             psFree(md);
    1132             exit(EXIT_FAILURE);
    1133         }
    1134 
    1135         psFree(md);
    1136     }
    1137 
    1138     {
    1139         psMetadata      *md;
    1140         detInputExpRow  *object;
    1141         bool            status;
    1142 
    1143         object = detInputExpRowAlloc(-32, -32, "a string", true);
    1144         if (!object) {
    1145             exit(EXIT_FAILURE);
    1146         }
    1147 
    1148         md = detInputExpMetadataFromObject(object);
    1149         if (!md) {
    1150             exit(EXIT_FAILURE);
    1151         }
    1152 
    1153         psFree(object);
    1154 
    1155         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1156             psFree(md);
    1157             exit(EXIT_FAILURE);
    1158         }
    1159         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1160             psFree(md);
    1161             exit(EXIT_FAILURE);
    1162         }
    1163         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1164             psFree(md);
    1165             exit(EXIT_FAILURE);
    1166         }
    1167         if (!psMetadataLookupBool(&status, md, "include") == true) {
    1168             psFree(md);
    1169             exit(EXIT_FAILURE);
    1170         }
    1171 
    1172         psFree(md);
    1173     }
    1174 
    1175     {
    1176         psMetadata      *md;
    1177         detProcessedImfileRow *object;
    1178         bool            status;
    1179 
    1180         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
    1181         if (!object) {
    1182             exit(EXIT_FAILURE);
    1183         }
    1184 
    1185         md = detProcessedImfileMetadataFromObject(object);
    1186         if (!md) {
    1187             exit(EXIT_FAILURE);
    1188         }
    1189 
    1190         psFree(object);
    1191 
    1192         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1193             psFree(md);
    1194             exit(EXIT_FAILURE);
    1195         }
    1196         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1197             psFree(md);
    1198             exit(EXIT_FAILURE);
    1199         }
    1200         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1201             psFree(md);
    1202             exit(EXIT_FAILURE);
    1203         }
    1204         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1205             psFree(md);
    1206             exit(EXIT_FAILURE);
    1207         }
    1208         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1209             psFree(md);
    1210             exit(EXIT_FAILURE);
    1211         }
    1212         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1213             psFree(md);
    1214             exit(EXIT_FAILURE);
    1215         }
    1216         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1217             psFree(md);
    1218             exit(EXIT_FAILURE);
    1219         }
    1220         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1221             psFree(md);
    1222             exit(EXIT_FAILURE);
    1223         }
    1224         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1225             psFree(md);
    1226             exit(EXIT_FAILURE);
    1227         }
    1228             psFree(md);
    1229             exit(EXIT_FAILURE);
    1230         }
    1231 
    1232         psFree(md);
    1233     }
    1234 
    1235     {
    1236         psMetadata      *md;
    1237         detProcessedExpRow *object;
    1238         bool            status;
    1239 
    1240         object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
    1241         if (!object) {
    1242             exit(EXIT_FAILURE);
    1243         }
    1244 
    1245         md = detProcessedExpMetadataFromObject(object);
    1246         if (!md) {
    1247             exit(EXIT_FAILURE);
    1248         }
    1249 
    1250         psFree(object);
    1251 
    1252         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1253             psFree(md);
    1254             exit(EXIT_FAILURE);
    1255         }
    1256         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1257             psFree(md);
    1258             exit(EXIT_FAILURE);
    1259         }
    1260         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1261             psFree(md);
    1262             exit(EXIT_FAILURE);
    1263         }
    1264         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1265             psFree(md);
    1266             exit(EXIT_FAILURE);
    1267         }
    1268         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1269             psFree(md);
    1270             exit(EXIT_FAILURE);
    1271         }
    1272         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1273             psFree(md);
    1274             exit(EXIT_FAILURE);
    1275         }
    1276         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1277             psFree(md);
    1278             exit(EXIT_FAILURE);
    1279         }
    1280             psFree(md);
    1281             exit(EXIT_FAILURE);
    1282         }
    1283 
    1284         psFree(md);
    1285     }
    1286 
    1287     {
    1288         psMetadata      *md;
    1289         detStackedImfileRow *object;
    1290         bool            status;
    1291 
    1292         object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
    1293         if (!object) {
    1294             exit(EXIT_FAILURE);
    1295         }
    1296 
    1297         md = detStackedImfileMetadataFromObject(object);
    1298         if (!md) {
    1299             exit(EXIT_FAILURE);
    1300         }
    1301 
    1302         psFree(object);
    1303 
    1304         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1305             psFree(md);
    1306             exit(EXIT_FAILURE);
    1307         }
    1308         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1309             psFree(md);
    1310             exit(EXIT_FAILURE);
    1311         }
    1312         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1313             psFree(md);
    1314             exit(EXIT_FAILURE);
    1315         }
    1316         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1317             psFree(md);
    1318             exit(EXIT_FAILURE);
    1319         }
    1320         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1321             psFree(md);
    1322             exit(EXIT_FAILURE);
    1323         }
    1324         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1325             psFree(md);
    1326             exit(EXIT_FAILURE);
    1327         }
    1328         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1329             psFree(md);
    1330             exit(EXIT_FAILURE);
    1331         }
    1332         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1333             psFree(md);
    1334             exit(EXIT_FAILURE);
    1335         }
    1336             psFree(md);
    1337             exit(EXIT_FAILURE);
    1338         }
    1339 
    1340         psFree(md);
    1341     }
    1342 
    1343     {
    1344         psMetadata      *md;
    1345         detNormalizedStatImfileRow *object;
    1346         bool            status;
    1347 
    1348         object = detNormalizedStatImfileRowAlloc(-32, -32, "a string", 32.32, -16);
    1349         if (!object) {
    1350             exit(EXIT_FAILURE);
    1351         }
    1352 
    1353         md = detNormalizedStatImfileMetadataFromObject(object);
    1354         if (!md) {
    1355             exit(EXIT_FAILURE);
    1356         }
    1357 
    1358         psFree(object);
    1359 
    1360         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1361             psFree(md);
    1362             exit(EXIT_FAILURE);
    1363         }
    1364         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1365             psFree(md);
    1366             exit(EXIT_FAILURE);
    1367         }
    1368         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1369             psFree(md);
    1370             exit(EXIT_FAILURE);
    1371         }
    1372         if (!psMetadataLookupF32(&status, md, "norm") == 32.32) {
    1373             psFree(md);
    1374             exit(EXIT_FAILURE);
    1375         }
    1376             psFree(md);
    1377             exit(EXIT_FAILURE);
    1378         }
    1379 
    1380         psFree(md);
    1381     }
    1382 
    1383     {
    1384         psMetadata      *md;
    1385         detNormalizedImfileRow *object;
    1386         bool            status;
    1387 
    1388         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
    1389         if (!object) {
    1390             exit(EXIT_FAILURE);
    1391         }
    1392 
    1393         md = detNormalizedImfileMetadataFromObject(object);
    1394         if (!md) {
    1395             exit(EXIT_FAILURE);
    1396         }
    1397 
    1398         psFree(object);
    1399 
    1400         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1401             psFree(md);
    1402             exit(EXIT_FAILURE);
    1403         }
    1404         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1405             psFree(md);
    1406             exit(EXIT_FAILURE);
    1407         }
    1408         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1409             psFree(md);
    1410             exit(EXIT_FAILURE);
    1411         }
    1412         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1413             psFree(md);
    1414             exit(EXIT_FAILURE);
    1415         }
    1416         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1417             psFree(md);
    1418             exit(EXIT_FAILURE);
    1419         }
    1420         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1421             psFree(md);
    1422             exit(EXIT_FAILURE);
    1423         }
    1424         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1425             psFree(md);
    1426             exit(EXIT_FAILURE);
    1427         }
    1428         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1429             psFree(md);
    1430             exit(EXIT_FAILURE);
    1431         }
    1432             psFree(md);
    1433             exit(EXIT_FAILURE);
    1434         }
    1435 
    1436         psFree(md);
    1437     }
    1438 
    1439     {
    1440         psMetadata      *md;
    1441         detNormalizedExpRow *object;
    1442         bool            status;
    1443 
    1444         object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", -16);
    1445         if (!object) {
    1446             exit(EXIT_FAILURE);
    1447         }
    1448 
    1449         md = detNormalizedExpMetadataFromObject(object);
    1450         if (!md) {
    1451             exit(EXIT_FAILURE);
    1452         }
    1453 
    1454         psFree(object);
    1455 
    1456         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1457             psFree(md);
    1458             exit(EXIT_FAILURE);
    1459         }
    1460         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1461             psFree(md);
    1462             exit(EXIT_FAILURE);
    1463         }
    1464         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1465             psFree(md);
    1466             exit(EXIT_FAILURE);
    1467         }
    1468         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1469             psFree(md);
    1470             exit(EXIT_FAILURE);
    1471         }
    1472         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1473             psFree(md);
    1474             exit(EXIT_FAILURE);
    1475         }
    1476         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1477             psFree(md);
    1478             exit(EXIT_FAILURE);
    1479         }
    1480         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1481             psFree(md);
    1482             exit(EXIT_FAILURE);
    1483         }
    1484             psFree(md);
    1485             exit(EXIT_FAILURE);
    1486         }
    1487 
    1488         psFree(md);
    1489     }
    1490 
    1491     {
    1492         psMetadata      *md;
    1493         detResidImfileRow *object;
    1494         bool            status;
    1495 
    1496         object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16);
    1497         if (!object) {
    1498             exit(EXIT_FAILURE);
    1499         }
    1500 
    1501         md = detResidImfileMetadataFromObject(object);
    1502         if (!md) {
    1503             exit(EXIT_FAILURE);
    1504         }
    1505 
    1506         psFree(object);
    1507 
    1508         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1509             psFree(md);
    1510             exit(EXIT_FAILURE);
    1511         }
    1512         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1513             psFree(md);
    1514             exit(EXIT_FAILURE);
    1515         }
    1516         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1517             psFree(md);
    1518             exit(EXIT_FAILURE);
    1519         }
    1520         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1521             psFree(md);
    1522             exit(EXIT_FAILURE);
    1523         }
    1524         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1525             psFree(md);
    1526             exit(EXIT_FAILURE);
    1527         }
    1528         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1529             psFree(md);
    1530             exit(EXIT_FAILURE);
    1531         }
    1532         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1533             psFree(md);
    1534             exit(EXIT_FAILURE);
    1535         }
    1536         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1537             psFree(md);
    1538             exit(EXIT_FAILURE);
    1539         }
    1540         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1541             psFree(md);
    1542             exit(EXIT_FAILURE);
    1543         }
    1544         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1545             psFree(md);
    1546             exit(EXIT_FAILURE);
    1547         }
    1548             psFree(md);
    1549             exit(EXIT_FAILURE);
    1550         }
    1551 
    1552         psFree(md);
    1553     }
    1554 
    1555     {
    1556         psMetadata      *md;
    1557         detResidExpRow  *object;
    1558         bool            status;
    1559 
    1560         object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16);
    1561         if (!object) {
    1562             exit(EXIT_FAILURE);
    1563         }
    1564 
    1565         md = detResidExpMetadataFromObject(object);
    1566         if (!md) {
    1567             exit(EXIT_FAILURE);
    1568         }
    1569 
    1570         psFree(object);
    1571 
    1572         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1573             psFree(md);
    1574             exit(EXIT_FAILURE);
    1575         }
    1576         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1577             psFree(md);
    1578             exit(EXIT_FAILURE);
    1579         }
    1580         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1581             psFree(md);
    1582             exit(EXIT_FAILURE);
    1583         }
    1584         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
    1585             psFree(md);
    1586             exit(EXIT_FAILURE);
    1587         }
    1588         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1589             psFree(md);
    1590             exit(EXIT_FAILURE);
    1591         }
    1592         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1593             psFree(md);
    1594             exit(EXIT_FAILURE);
    1595         }
    1596         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1597             psFree(md);
    1598             exit(EXIT_FAILURE);
    1599         }
    1600         if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) {
    1601             psFree(md);
    1602             exit(EXIT_FAILURE);
    1603         }
    1604         if (!psMetadataLookupBool(&status, md, "accept") == true) {
    1605             psFree(md);
    1606             exit(EXIT_FAILURE);
    1607         }
    1608             psFree(md);
    1609             exit(EXIT_FAILURE);
    1610         }
    1611 
    1612         psFree(md);
    1613     }
    1614 
    1615     {
    1616         psMetadata      *md;
    1617         detRunSummaryRow *object;
    1618         bool            status;
    1619 
    1620         object = detRunSummaryRowAlloc(-32, -32, 64.64, 64.64, 64.64, true, -16);
    1621         if (!object) {
    1622             exit(EXIT_FAILURE);
    1623         }
    1624 
    1625         md = detRunSummaryMetadataFromObject(object);
    1626         if (!md) {
    1627             exit(EXIT_FAILURE);
    1628         }
    1629 
    1630         psFree(object);
    1631 
    1632         if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
    1633             psFree(md);
    1634             exit(EXIT_FAILURE);
    1635         }
    1636         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    1637             psFree(md);
    1638             exit(EXIT_FAILURE);
    1639         }
    1640         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1641             psFree(md);
    1642             exit(EXIT_FAILURE);
    1643         }
    1644         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1645             psFree(md);
    1646             exit(EXIT_FAILURE);
    1647         }
    1648         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1649             psFree(md);
    1650             exit(EXIT_FAILURE);
    1651         }
    1652         if (!psMetadataLookupBool(&status, md, "accept") == true) {
    1653             psFree(md);
    1654             exit(EXIT_FAILURE);
    1655         }
    1656             psFree(md);
    1657             exit(EXIT_FAILURE);
    1658         }
    1659 
    1660         psFree(md);
    1661     }
    1662 
    1663     {
    1664         psMetadata      *md;
    1665         warpRunRow      *object;
    1666         bool            status;
    1667 
    1668         object = warpRunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
    1669         if (!object) {
    1670             exit(EXIT_FAILURE);
    1671         }
    1672 
    1673         md = warpRunMetadataFromObject(object);
    1674         if (!md) {
    1675             exit(EXIT_FAILURE);
    1676         }
    1677 
    1678         psFree(object);
    1679 
    1680         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
    1681             psFree(md);
    1682             exit(EXIT_FAILURE);
    1683         }
    1684         if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) {
    1685             psFree(md);
    1686             exit(EXIT_FAILURE);
    1687         }
    1688         if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
    1689             psFree(md);
    1690             exit(EXIT_FAILURE);
    1691         }
    1692         if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    1693             psFree(md);
    1694             exit(EXIT_FAILURE);
    1695         }
    16961945        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
    16971946            psFree(md);
     
    17011950            exit(EXIT_FAILURE);
    17021951        }
    1703 
    1704         psFree(md);
    1705     }
    1706 
    1707     {
    1708         psMetadata      *md;
    1709         warpInputExpRow *object;
    1710         bool            status;
    1711 
    1712         object = warpInputExpRowAlloc(-32, "a string", -32, true);
    1713         if (!object) {
    1714             exit(EXIT_FAILURE);
    1715         }
    1716 
    1717         md = warpInputExpMetadataFromObject(object);
    1718         if (!md) {
    1719             exit(EXIT_FAILURE);
    1720         }
    1721 
    1722         psFree(object);
    1723 
    1724         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
    1725             psFree(md);
    1726             exit(EXIT_FAILURE);
    1727         }
    1728         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1729             psFree(md);
    1730             exit(EXIT_FAILURE);
    1731         }
    1732         if (!psMetadataLookupS32(&status, md, "cam_version") == -32) {
    1733             psFree(md);
    1734             exit(EXIT_FAILURE);
    1735         }
    1736         if (!psMetadataLookupBool(&status, md, "magiced") == true) {
    1737             psFree(md);
    1738             exit(EXIT_FAILURE);
    1739         }
    1740 
    1741         psFree(md);
    1742     }
    1743 
    1744     {
    1745         psMetadata      *md;
    1746         warpSkyCellMapRow *object;
    1747         bool            status;
    1748 
    1749         object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string", -16);
    1750         if (!object) {
    1751             exit(EXIT_FAILURE);
    1752         }
    1753 
    1754         md = warpSkyCellMapMetadataFromObject(object);
    1755         if (!md) {
    1756             exit(EXIT_FAILURE);
    1757         }
    1758 
    1759         psFree(object);
    1760 
    1761         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
    1762             psFree(md);
    1763             exit(EXIT_FAILURE);
    1764         }
    17651952        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    17661953            psFree(md);
     
    17711958            exit(EXIT_FAILURE);
    17721959        }
    1773         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1774             psFree(md);
    1775             exit(EXIT_FAILURE);
    1776         }
    1777         if (!psMetadataLookupS32(&status, md, "cam_version") == -32) {
    1778             psFree(md);
    1779             exit(EXIT_FAILURE);
    1780         }
    1781         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1782             psFree(md);
    1783             exit(EXIT_FAILURE);
    1784         }
    1785             psFree(md);
    1786             exit(EXIT_FAILURE);
    1787         }
    1788 
    1789         psFree(md);
    1790     }
    1791 
    1792     {
    1793         psMetadata      *md;
    1794         warpSkyfileRow  *object;
    1795         bool            status;
    1796 
    1797         object = warpSkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);
    1798         if (!object) {
    1799             exit(EXIT_FAILURE);
    1800         }
    1801 
    1802         md = warpSkyfileMetadataFromObject(object);
    1803         if (!md) {
    1804             exit(EXIT_FAILURE);
    1805         }
    1806 
    1807         psFree(object);
    1808 
    1809         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
    1810             psFree(md);
    1811             exit(EXIT_FAILURE);
    1812         }
    1813         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1814             psFree(md);
    1815             exit(EXIT_FAILURE);
    1816         }
    1817         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1818             psFree(md);
    1819             exit(EXIT_FAILURE);
    1820         }
    1821         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1822             psFree(md);
    1823             exit(EXIT_FAILURE);
    1824         }
    1825         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1826             psFree(md);
    1827             exit(EXIT_FAILURE);
    1828         }
    1829         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1830             psFree(md);
    1831             exit(EXIT_FAILURE);
    1832         }
    1833 
    1834         psFree(md);
    1835     }
    1836 
    1837     {
    1838         psMetadata      *md;
    1839         diffRunRow      *object;
    1840         bool            status;
    1841 
    1842         object = diffRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
    1843         if (!object) {
    1844             exit(EXIT_FAILURE);
    1845         }
    1846 
    1847         md = diffRunMetadataFromObject(object);
    1848         if (!md) {
    1849             exit(EXIT_FAILURE);
    1850         }
    1851 
    1852         psFree(object);
    1853 
    1854         if (!psMetadataLookupS32(&status, md, "diff_id") == -32) {
    1855             psFree(md);
    1856             exit(EXIT_FAILURE);
    1857         }
    1858         if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
    1859             psFree(md);
    1860             exit(EXIT_FAILURE);
    1861         }
    1862         if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    1863             psFree(md);
    1864             exit(EXIT_FAILURE);
    1865         }
    1866         if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
    1867             psFree(md);
    1868             exit(EXIT_FAILURE);
    1869         }
    1870             psFree(md);
    1871             exit(EXIT_FAILURE);
    1872         }
    1873         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1874             psFree(md);
    1875             exit(EXIT_FAILURE);
    1876         }
    1877         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1878             psFree(md);
    1879             exit(EXIT_FAILURE);
    1880         }
    1881 
    1882         psFree(md);
    1883     }
    1884 
    1885     {
    1886         psMetadata      *md;
    1887         diffInputSkyfileRow *object;
    1888         bool            status;
    1889 
    1890         object = diffInputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true);
    1891         if (!object) {
    1892             exit(EXIT_FAILURE);
    1893         }
    1894 
    1895         md = diffInputSkyfileMetadataFromObject(object);
    1896         if (!md) {
    1897             exit(EXIT_FAILURE);
    1898         }
    1899 
    1900         psFree(object);
    1901 
    1902         if (!psMetadataLookupS32(&status, md, "diff_id") == -32) {
    1903             psFree(md);
    1904             exit(EXIT_FAILURE);
    1905         }
    1906         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
    1907             psFree(md);
    1908             exit(EXIT_FAILURE);
    1909         }
    1910         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1911             psFree(md);
    1912             exit(EXIT_FAILURE);
    1913         }
    1914         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1915             psFree(md);
    1916             exit(EXIT_FAILURE);
    1917         }
    1918         if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) {
    1919             psFree(md);
    1920             exit(EXIT_FAILURE);
    1921         }
    1922         if (!psMetadataLookupBool(&status, md, "template") == true) {
    1923             psFree(md);
    1924             exit(EXIT_FAILURE);
    1925         }
    1926 
    1927         psFree(md);
    1928     }
    1929 
    1930     {
    1931         psMetadata      *md;
    1932         diffSkyfileRow  *object;
    1933         bool            status;
    1934 
    1935         object = diffSkyfileRowAlloc(-32, "a string", 64.64, 64.64);
    1936         if (!object) {
    1937             exit(EXIT_FAILURE);
    1938         }
    1939 
    1940         md = diffSkyfileMetadataFromObject(object);
    1941         if (!md) {
    1942             exit(EXIT_FAILURE);
    1943         }
    1944 
    1945         psFree(object);
    1946 
    1947         if (!psMetadataLookupS32(&status, md, "diff_id") == -32) {
    1948             psFree(md);
    1949             exit(EXIT_FAILURE);
    1950         }
    1951         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1952             psFree(md);
    1953             exit(EXIT_FAILURE);
    1954         }
    1955         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1956             psFree(md);
    1957             exit(EXIT_FAILURE);
    1958         }
    1959         if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
    1960             psFree(md);
    1961             exit(EXIT_FAILURE);
    1962         }
    1963 
    1964         psFree(md);
    1965     }
    1966 
    1967     {
    1968         psMetadata      *md;
    1969         stackRunRow     *object;
    1970         bool            status;
    1971 
    1972         object = stackRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
    1973         if (!object) {
    1974             exit(EXIT_FAILURE);
    1975         }
    1976 
    1977         md = stackRunMetadataFromObject(object);
    1978         if (!md) {
    1979             exit(EXIT_FAILURE);
    1980         }
    1981 
    1982         psFree(object);
    1983 
    1984         if (!psMetadataLookupS32(&status, md, "stack_id") == -32) {
    1985             psFree(md);
    1986             exit(EXIT_FAILURE);
    1987         }
    1988         if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
    1989             psFree(md);
    1990             exit(EXIT_FAILURE);
    1991         }
    1992         if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    1993             psFree(md);
    1994             exit(EXIT_FAILURE);
    1995         }
    1996         if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
    1997             psFree(md);
    1998             exit(EXIT_FAILURE);
    1999         }
    2000             psFree(md);
    2001             exit(EXIT_FAILURE);
    2002         }
    2003         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    2004             psFree(md);
    2005             exit(EXIT_FAILURE);
    2006         }
    2007         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    2008             psFree(md);
    2009             exit(EXIT_FAILURE);
    2010         }
    20111960
    20121961        psFree(md);
     
    20181967        bool            status;
    20191968
    2020         object = stackInputSkyfileRowAlloc(-32, -32);
     1969        object = stackInputSkyfileRowAlloc(-64, -64);
    20211970        if (!object) {
    20221971            exit(EXIT_FAILURE);
     
    20301979        psFree(object);
    20311980
    2032         if (!psMetadataLookupS32(&status, md, "stack_id") == -32) {
    2033             psFree(md);
    2034             exit(EXIT_FAILURE);
    2035         }
    2036         if (!psMetadataLookupS32(&status, md, "warp_id") == -32) {
     1981            psFree(md);
     1982            exit(EXIT_FAILURE);
     1983        }
    20371984            psFree(md);
    20381985            exit(EXIT_FAILURE);
     
    20471994        bool            status;
    20481995
    2049         object = stackSumSkyfileRowAlloc(-32, "a string", 64.64, 64.64);
     1996        object = stackSumSkyfileRowAlloc(-64, "a string", 64.64, 64.64);
    20501997        if (!object) {
    20511998            exit(EXIT_FAILURE);
     
    20592006        psFree(object);
    20602007
    2061         if (!psMetadataLookupS32(&status, md, "stack_id") == -32) {
    20622008            psFree(md);
    20632009            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.