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 |
|
|
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 |
|
|
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( |
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', |