Changeset 6647
- Timestamp:
- Mar 20, 2006, 12:01:47 PM (20 years ago)
- Location:
- trunk/DataStore
- Files:
-
- 2 edited
-
lib/DataStore/FileSet.pm (modified) (4 diffs)
-
t/06_fileset.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/lib/DataStore/FileSet.pm
r6614 r6647 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: FileSet.pm,v 1. 8 2006-03-17 01:10:51jhoblitt Exp $3 # $Id: FileSet.pm,v 1.9 2006-03-20 22:01:47 jhoblitt Exp $ 4 4 5 5 package DataStore::FileSet; … … 89 89 The FileSet ID as a string. 90 90 91 This key is optional. 92 91 93 =item * datetime 92 94 93 95 The time and date as a string. 94 96 97 This key is optional. 98 95 99 =item * type 96 100 97 101 The I<type> of record as a string. 102 103 This key is optional. 98 104 99 105 =back … … 120 126 type => SCALAR, 121 127 regex => $STD_FIELD, 128 optional => 1, 122 129 }, 123 130 datetime => { 124 131 type => SCALAR, 125 132 regex => $TIME_FIELD, 133 optional => 1, 126 134 }, 127 135 type => { … … 131 139 sub { exists $KNOWN_FILESET_TYPES{$_[0]} }, 132 140 }, 141 optional => 1, 133 142 }, 134 143 }, -
trunk/DataStore/t/06_fileset.t
r6633 r6647 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: 06_fileset.t,v 1. 5 2006-03-17 23:54:35jhoblitt Exp $5 # $Id: 06_fileset.t,v 1.6 2006-03-20 22:01:47 jhoblitt Exp $ 6 6 7 7 use strict; … … 69 69 my $dsp = DataStore::FileSet->new; 70 70 }; 71 like($@, qr/Mandatory parameter s/,71 like($@, qr/Mandatory parameter/, 72 72 '->new() fails when not passed all manadator params'); 73 73 … … 149 149 } 150 150 151 sleep 60; 151 152 # cleanup HTTP server 152 153 kill 9, $pid;
Note:
See TracChangeset
for help on using the changeset viewer.
