/[webpac2]/trunk/t/6-unit.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 /trunk/t/6-unit.t

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

revision 886 by dpavlin, Tue Oct 31 13:44:42 2006 UTC revision 887 by dpavlin, Mon Sep 3 15:26:46 2007 UTC
# Line 7  use Test::Exception; Line 7  use Test::Exception;
7  use Cwd qw/abs_path/;  use Cwd qw/abs_path/;
8  use File::Temp qw/tempdir/;  use File::Temp qw/tempdir/;
9  use File::Slurp;  use File::Slurp;
10  use Data::Dumper;  use Data::Dump qw/dump/;
11  use Time::HiRes qw/time/;  use Time::HiRes qw/time/;
12  use blib;  use blib;
13    
# Line 56  ok(my $maxmfn = $isis->open( Line 56  ok(my $maxmfn = $isis->open(
56    
57  ok(my $path = tempdir( CLEANUP => 1 ), "path");  ok(my $path = tempdir( CLEANUP => 1 ), "path");
58    
59  ok(my $db = new WebPAC::Store(  ok(my $db = new WebPAC::Store({
         path => $path,  
60          database => '.',          database => '.',
61  ), "new Store");  }), "new Store");
62    
63  ok(my $norm_pl = read_file( $normalize_set_pl ), "set definitions: $normalize_set_pl" );  ok(my $norm_pl = read_file( $normalize_set_pl ), "set definitions: $normalize_set_pl" );
64    
# Line 74  foreach my $pos ( 0 ... $isis->size ) { Line 73  foreach my $pos ( 0 ... $isis->size ) {
73    
74          my $row = $isis->fetch || next;          my $row = $isis->fetch || next;
75    
76          diag " row $pos => ",Dumper($row) if ($debug);          diag " row $pos => ",dump($row) if ($debug);
77    
78          my $t = time();          my $t = time();
79          ok( my $ds = WebPAC::Normalize::data_structure(          ok( my $ds = WebPAC::Normalize::data_structure(
# Line 83  foreach my $pos ( 0 ... $isis->size ) { Line 82  foreach my $pos ( 0 ... $isis->size ) {
82          ), "Set data_structure");          ), "Set data_structure");
83          $t_norm += time() - $t;          $t_norm += time() - $t;
84    
85          diag " ds $pos => ",Dumper($ds) if ($debug);          diag " ds $pos => ",dump($ds) if ($debug);
86    
87          ok(my $html = $out->apply(          ok(my $html = $out->apply(
88                  template => 'html.tt',                  template => 'html.tt',

Legend:
Removed from v.886  
changed lines
  Added in v.887

  ViewVC Help
Powered by ViewVC 1.1.26