IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24644 for trunk/Nebulous/t


Ignore:
Timestamp:
Jul 2, 2009, 2:18:56 PM (17 years ago)
Author:
jhoblitt
Message:

add ->stat() total instances field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/63_client_stat.t

    r13203 r24644  
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 12;
     12plan tests => 13;
    1313
    1414use lib qw( ./t ./lib );
     
    3030    my $info = $neb->stat( "foo" );
    3131
    32     is( scalar @$info, 7, "number of columns" );
     32    is( scalar @$info, 8, "number of columns" );
    3333}
    3434
     
    4343    my $info = $neb->stat( "foo" );
    4444
    45     is( scalar @$info, 7,                       "number of columns" );
     45    is( scalar @$info, 8,                       "number of columns" );
    4646    is( @$info[0], 1,                           "so_id" );
    4747    is( @$info[1], "foo",                       "ext_id" );
     
    5050    like( @$info[4], qr/....-..-.. ..:..:../,   "epoch" );
    5151    like( @$info[5], qr/....-..-.. ..:..:../,   "mtime" );
    52     is( @$info[6], 1,                           "instances" );
     52    is( @$info[6], 1,                           "available instances" );
     53    is( @$info[7], 1,                           "total instances" );
    5354}
    5455
Note: See TracChangeset for help on using the changeset viewer.