Changeset 5335
- Timestamp:
- Oct 14, 2005, 1:31:39 PM (21 years ago)
- Location:
- trunk/PS-IPP-PSFTP
- Files:
-
- 2 edited
-
lib/PS/IPP/PSFTP/Parser.pm (modified) (3 diffs)
-
t/02_parse.t (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PSFTP/lib/PS/IPP/PSFTP/Parser.pm
r5253 r5335 1 1 # Copyright (C) 2005 Joshua Hoblitt 2 2 # 3 # $Id: Parser.pm,v 1. 3 2005-10-08 02:09:05jhoblitt Exp $3 # $Id: Parser.pm,v 1.4 2005-10-14 23:31:39 jhoblitt Exp $ 4 4 5 5 package PS::IPP::PSFTP::Parser; … … 12 12 use vars qw( @FIELDS @REQUIRED_FIELDS ); 13 13 14 @FIELDS = qw( date time id type attributes size md5 url );15 @REQUIRED_FIELDS = qw( date time id type size md5 url );14 @FIELDS = qw( date time file_id type attributes size md5 url ); 15 @REQUIRED_FIELDS = qw( date time file_id type size md5 url ); 16 16 17 17 sub new … … 110 110 use vars qw( @FIELDS ); 111 111 112 @FIELDS = qw( stamp id type attributes size md5 url );112 @FIELDS = qw( stamp file_id type attributes size md5 url ); 113 113 114 114 __PACKAGE__->mk_accessors( @FIELDS ); -
trunk/PS-IPP-PSFTP/t/02_parse.t
r5251 r5335 3 3 # Copyright (C) 2005 Joshua Hoblitt 4 4 # 5 # $Id: 02_parse.t,v 1. 4 2005-10-08 01:56:05jhoblitt Exp $5 # $Id: 02_parse.t,v 1.5 2005-10-14 23:30:48 jhoblitt Exp $ 6 6 7 7 use strict; … … 32 32 my $item = pop @items; 33 33 is($item->stamp, "2005-08-06T19:30:01", "correct time stamp"); 34 is($item-> id, "telescope_2005-08-06T19:30:01", "correctid");34 is($item->file_id, "telescope_2005-08-06T19:30:01", "correct file id"); 35 35 is($item->type, "metadata", "correct type"); 36 36 is($item->size, 8640, "correct size"); … … 44 44 my $item = pop @items; 45 45 is($item->stamp, "2005-08-06T19:40:01", "correct time stamp"); 46 is($item-> id, "telescope_2005-08-06T19:40:01", "correctid");46 is($item->file_id, "telescope_2005-08-06T19:40:01", "correct file id"); 47 47 is($item->type, "metadata", "correct type"); 48 48 is($item->size, 8640, "correct size"); … … 55 55 my $item = pop @items; 56 56 is($item->stamp, "2005-08-06T19:50:01", "correct time stamp"); 57 is($item-> id, "telescope_2005-08-06T19:50:01", "correctid");57 is($item->file_id, "telescope_2005-08-06T19:50:01", "correct file id"); 58 58 is($item->type, "metadata", "correct type"); 59 59 is($item->size, 8640, "correct size"); … … 77 77 my $item = pop @items; 78 78 is($item->stamp, "2005-08-06T19:30:01", "correct time stamp"); 79 is($item-> id, "telescope_2005-08-06T19:30:01", "correctid");79 is($item->file_id, "telescope_2005-08-06T19:30:01", "correct file id"); 80 80 is($item->type, "metadata", "correct type"); 81 81 is($item->size, 8640, "correct size");
Note:
See TracChangeset
for help on using the changeset viewer.
