/[cwmp]/google/trunk/t/05-store.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /google/trunk/t/05-store.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 226 by dpavlin, Sun Nov 25 13:34:09 2007 UTC revision 227 by dpavlin, Sun Nov 25 18:51:26 2007 UTC
# Line 4  use warnings; Line 4  use warnings;
4    
5  my $debug = shift @ARGV;  my $debug = shift @ARGV;
6    
7  use Test::More tests => 47;  use Test::More tests => 32;
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9  use Cwd qw/abs_path/;  use Cwd qw/abs_path/;
10  use lib 'lib';  use lib 'lib';
# Line 13  use lib 'lib'; Line 13  use lib 'lib';
13    
14  BEGIN {  BEGIN {
15          use_ok('CWMP::Store');          use_ok('CWMP::Store');
         use_ok('CWMP::Store::DBMDeep');  
16          use_ok('CWMP::Store::YAML');          use_ok('CWMP::Store::YAML');
17          use_ok('CWMP::Store::JSON');          use_ok('CWMP::Store::JSON');
18  }  }
# Line 79  sub test_store { Line 78  sub test_store {
78    
79          is_deeply( [ $store->all_uids ], [ 123456, 99999 ], 'all_uids' );          is_deeply( [ $store->all_uids ], [ 123456, 99999 ], 'all_uids' );
80    
         undef $store;  
   
81  }  }
82    
83  # now test all stores  # now test all stores
84    
 test_store('DBMDeep');  
85  test_store('YAML');  test_store('YAML');
86  test_store('JSON');  test_store('JSON');
87    

Legend:
Removed from v.226  
changed lines
  Added in v.227

  ViewVC Help
Powered by ViewVC 1.1.26