IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 21, 2006, 3:17:34 PM (20 years ago)
Author:
smalle
Message:
  • Added a Root object and associated Product::Parser to query the root of the datastore.
  • The 'is_success' field in a Response now gets its value carried over from the HTTP::Response as intended.
  • The 'data' field in a Response can now be undef to indicate that no records were parsed.
  • Root::request, Product::request, FileSet::request now always return a Response object.
  • FileSets and Files will now have any additional non-standard fields parsed into the @extra array.
  • Updated tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/t/08_response.t

    r6542 r7951  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 08_response.t,v 1.1 2006-03-08 02:11:46 jhoblitt Exp $
     5# $Id: 08_response.t,v 1.2 2006-07-22 01:17:34 smalle Exp $
    66
    77use strict;
     
    1010use lib qw( ./lib ./t );
    1111
    12 use Test::More tests => 9;
     12use Test::More tests => 8;
    1313
    1414=head1 NAME
     
    8181
    8282eval {
    83     my $dsr = DataStore::Response->new( data => undef );
    84 };
    85 like($@, qr/is not one of the allowed types/,
    86     '->new() fails when data is not valid');
    87 
    88 eval {
    8983    my $dsr = DataStore::Response->new(
    9084        request => CGI->new,
Note: See TracChangeset for help on using the changeset viewer.