IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 1, 2009, 6:40:27 PM (17 years ago)
Author:
jhoblitt
Message:

change Nebulous::Server->stat_object() to return both the total number of instance and just those that are available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/10_server_stat_object.t

    r24356 r24639  
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 13;
    1111
    1212use lib qw( ./t ./lib );
     
    2727    my $info = $neb->stat_object("foo");
    2828
    29     is(scalar @$info, 7, "number of columns");
     29    is(scalar @$info, 8, "number of columns");
    3030}
    3131
     
    3737    my $info = $neb->stat_object("foo");
    3838
    39     is(scalar @$info, 7,                       "number of columns");
     39    is(scalar @$info, 8,                       "number of columns");
    4040    is(@$info[0], 1,                           "so_id");
    4141    is(@$info[1], "foo",                       "ext_id");
     
    4545    like(@$info[5], qr/....-..-.. ..:..:../,   "mtime");
    4646    is(@$info[6], 1,                           "instances");
     47    is(@$info[7], 1,                           "available instances");
    4748}
    4849
Note: See TracChangeset for help on using the changeset viewer.