IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2008, 10:54:04 AM (18 years ago)
Author:
jhoblitt
Message:

define Nebulous::Client::find_objects() as returning [] when NO keys are found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/64_client_find_objects.t

    r13048 r16232  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 64_client_find_objects.t,v 1.1 2007-04-27 00:09:22 jhoblitt Exp $
     5# $Id: 64_client_find_objects.t,v 1.2 2008-01-25 20:54:04 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 6;
     12plan tests => 7;
    1313
    1414use lib qw( ./t ./lib );
     
    3131    my $keys = $neb->find_objects();
    3232
    33     is($keys, undef, 'number of keys found');
     33    # undef indicates an error
     34    is($keys, undef, 'undef is an error');
    3435}
    3536
     
    6768Test::Nebulous->setup;
    6869
     70{
     71    # key does not exist
     72    my $neb = Nebulous::Client->new(
     73        proxy => "http://$hostport/nebulous",
     74    );
     75
     76    my $keys = $neb->find_objects( "bar" );
     77
     78    is_deeply($keys, [], 'number of keys found');
     79}
     80
     81Test::Nebulous->setup;
     82
    6983eval {
    7084    my $neb = Nebulous::Client->new(
Note: See TracChangeset for help on using the changeset viewer.