IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2008, 5:11:49 PM (18 years ago)
Author:
jhoblitt
Message:

faketool merge

File:
1 edited

Legend:

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

    r17872 r18044  
    322322        }
    323323
    324         object = camProcessedExpRowAlloc(-64, -64, "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, "a string", -32, -32, -32, -32, "a string", -16);
     324        object = camProcessedExpRowAlloc(-64, "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, "a string", -32, -32, -32, -32, "a string", -16);
    325325        if (!object) {
    326326            exit(EXIT_FAILURE);
     
    359359    {
    360360        psDB            *dbh;
     361        fakeRunRow      *object;
     362
     363        dbh = psDBInit("localhost", "test", NULL, "test");
     364        if (!dbh) {
     365            exit(EXIT_FAILURE);
     366        }
     367
     368        object = fakeRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     369        if (!object) {
     370            exit(EXIT_FAILURE);
     371        }
     372
     373        if (!fakeRunInsertObject(dbh, object)) {
     374            exit(EXIT_FAILURE);
     375        }
     376
     377        psFree(object);
     378        psDBCleanup(dbh);
     379    }
     380
     381    {
     382        psDB            *dbh;
     383        fakeProcessedImfileRow *object;
     384
     385        dbh = psDBInit("localhost", "test", NULL, "test");
     386        if (!dbh) {
     387            exit(EXIT_FAILURE);
     388        }
     389
     390        object = fakeProcessedImfileRowAlloc(-64, -64, "a string", "a string", 32.32, "a string", "a string", -16, "0001-01-01T00:00:00Z");
     391        if (!object) {
     392            exit(EXIT_FAILURE);
     393        }
     394
     395        if (!fakeProcessedImfileInsertObject(dbh, object)) {
     396            exit(EXIT_FAILURE);
     397        }
     398
     399        psFree(object);
     400        psDBCleanup(dbh);
     401    }
     402
     403    {
     404        psDB            *dbh;
     405        fakeMaskRow     *object;
     406
     407        dbh = psDBInit("localhost", "test", NULL, "test");
     408        if (!dbh) {
     409            exit(EXIT_FAILURE);
     410        }
     411
     412        object = fakeMaskRowAlloc("a string");
     413        if (!object) {
     414            exit(EXIT_FAILURE);
     415        }
     416
     417        if (!fakeMaskInsertObject(dbh, object)) {
     418            exit(EXIT_FAILURE);
     419        }
     420
     421        psFree(object);
     422        psDBCleanup(dbh);
     423    }
     424
     425    {
     426        psDB            *dbh;
    361427        warpRunRow      *object;
    362428
     
    388454        }
    389455
    390         object = warpSkyCellMapRowAlloc(-64, "a string", "a string", -64, "a string", -16);
     456        object = warpSkyCellMapRowAlloc(-64, "a string", "a string", "a string", -16);
    391457        if (!object) {
    392458            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.