Changeset 3016 for trunk/Nebulous/t
- Timestamp:
- Jan 14, 2005, 6:02:12 PM (22 years ago)
- Location:
- trunk/Nebulous/t
- Files:
-
- 3 edited
-
09_server_stat_object.t (modified) (4 diffs)
-
23_client_stat.t (modified) (5 diffs)
-
Test/Nebulous.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/t/09_server_stat_object.t
r2872 r3016 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 09_server_stat_object.t,v 1. 3 2005-01-03 23:55:29jhoblitt Exp $5 # $Id: 09_server_stat_object.t,v 1.4 2005-01-15 04:02:12 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 1 2;10 use Test::More tests => 13; 11 11 12 12 use lib qw( ./t ./lib ); … … 31 31 my $info = $idata->stat_object( "foo" ); 32 32 33 is( scalar @$info, 7, "number of columns" );33 is( scalar @$info, 8, "number of columns" ); 34 34 } 35 35 … … 41 41 my $info = $idata->stat_object( "foo" ); 42 42 43 is( scalar @$info, 7, "number of columns" );43 is( scalar @$info, 8, "number of columns" ); 44 44 is( @$info[0], 1, "so_id" ); 45 45 is( @$info[1], "foo", "ext_id" ); … … 49 49 is( @$info[5], undef, "write lock" ); 50 50 like( @$info[6], qr/....-..-.. ..:..:../, "epoch" ); 51 like( @$info[6], qr/....-..-.. ..:..:../, "mtime" ); 51 52 } 52 53 -
trunk/Nebulous/t/23_client_stat.t
r2893 r3016 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 23_client_stat.t,v 1. 1 2005-01-04 22:02:43jhoblitt Exp $5 # $Id: 23_client_stat.t,v 1.2 2005-01-15 04:02:12 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 1 2;12 plan tests => 13; 13 13 14 14 use lib qw( ./t ./lib ); … … 30 30 my $info = $idata->stat( "foo" ); 31 31 32 is( scalar @$info, 7, "number of columns" );32 is( scalar @$info, 8, "number of columns" ); 33 33 } 34 34 … … 43 43 my $info = $idata->stat( "foo" ); 44 44 45 is( scalar @$info, 7, "number of columns" );45 is( scalar @$info, 8, "number of columns" ); 46 46 is( @$info[0], 1, "so_id" ); 47 47 is( @$info[1], "foo", "ext_id" ); … … 51 51 is( @$info[5], undef, "write lock" ); 52 52 like( @$info[6], qr/....-..-.. ..:..:../, "epoch" ); 53 like( @$info[6], qr/....-..-.. ..:..:../, "mtime" ); 53 54 } 54 55 -
trunk/Nebulous/t/Test/Nebulous.pm
r2785 r3016 1 1 # Copyright (C) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Nebulous.pm,v 1. 1.1.1 2004-12-22 02:16:23jhoblitt Exp $3 # $Id: Nebulous.pm,v 1.2 2005-01-15 04:02:12 jhoblitt Exp $ 4 4 5 5 package Test::IData; … … 68 68 read_lock TINYINT DEFAULT 0 NOT NULL, 69 69 write_lock ENUM( 'write' ), 70 epoch TIMESTAMP NOT NULL, 70 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 71 mtime TIMESTAMP, 71 72 PRIMARY KEY(so_id), 72 73 KEY(ext_id(64)), … … 78 79 ins_id BIGINT NOT NULL AUTO_INCREMENT, 79 80 so_id BIGINT NOT NULL, 80 uri VARCHAR(255) BINARY NOT NULL UNIQUE,81 sha1sum CHAR(40) ,81 uri VARCHAR(255) BINARY NOT NULL, 82 sha1sum CHAR(40) ASCII, 82 83 assigned_location BOOL, 83 epoch TIMESTAMP NOT NULL,84 atime TIMESTAMP NOT NULL,84 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 85 mtime TIMESTAMP, 85 86 PRIMARY KEY(ins_id), 86 87 KEY(so_id),
Note:
See TracChangeset
for help on using the changeset viewer.
