blib/lib/Win32/UrlCache/Cache.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::Cache;
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 my $dir = $Registry->{'CUser/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders//Cache'};
18
19 my $ie5_dir = File::Spec->catdir( $dir, 'Content.IE5' );
20 $dir = $ie5_dir if -d $ie5_dir;
21
22 return File::Spec->catfile( $dir, 'index.dat' );
23 }
24
25 1;
26
27 __END__