File Coverage

blib/lib/Win32/Exe/Resource.pm
Criterion Covered Total %
statement 6 17 35.2
branch n/a
condition 0 3 0.0
subroutine 2 8 25.0
pod 0 6 0.0
total 8 34 23.5


line stmt bran cond sub pod time code
1             # Copyright 2004 by Audrey Tang
2              
3             package Win32::Exe::Resource;
4              
5 1     1   7 use strict;
  1         2  
  1         35  
6 1     1   6 use base 'Win32::Exe::Base';
  1         2  
  1         276  
7              
8             sub object {
9 0     0 0   my ($self) = @_;
10 0           return $self;
11             }
12              
13             sub path {
14 0     0 0   my ($self) = @_;
15 0           return $self->parent->path;
16             }
17              
18             sub CodePage {
19 0     0 0   return 1252;
20             }
21              
22             sub PathName {
23 0     0 0   my ($self) = @_;
24 0   0       return $self->{pathname} || $self->first_parent('ResourceEntry')->PathName;
25             }
26              
27             sub SetPathName {
28 0     0 0   my ($self, $value) = @_;
29 0           $self->{pathname} = $value;
30             }
31              
32             sub Data {
33 0     0 0   my ($self) = @_;
34 0           return $self->dump;
35             }
36              
37             1;