blib/lib/Win32/UrlCache/History.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 34 CC 2 SCAR 11.0
CC
2
Cov
0%
_file
6.0
new
2.0
BEGIN
2.0
CRAP 3.0
1 package Win32::UrlCache::History;
2
3 use strict;
4 use warnings;
5 use base qw( Win32::UrlCache );
6 use Win32::TieRegistry ( Delimiter => '/' );
7 use File::Spec;
8
9 sub new {
10 my $class = shift;
11
12 $class->SUPER::new( $class->_file );
13 }
14
15 sub _file {
16 my $class = shift;
17
18 my $dir = $Registry->{'CUser/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders//History'};
19
20 my $ie5_dir = File::Spec->catdir( $dir, 'History.IE5' );
21 $dir = $ie5_dir if -d $ie5_dir;
22
23 return File::Spec->catfile( $dir, 'index.dat' );
24 }
25
26 1;
27
28 __END__