File Coverage

lib/PatchReader/FilterPatch.pm
Criterion Covered Total %
statement 17 21 80.9
branch 3 10 30.0
condition 1 3 33.3
subroutine 6 8 75.0
pod 0 6 0.0
total 27 48 56.2


line stmt bran cond sub pod time code
1             package PatchReader::FilterPatch;
2              
3 8     8   80 use strict;
  8         15  
  8         289  
4              
5 8     8   393 use PatchReader::Base;
  8         13  
  8         2342  
6              
7             @PatchReader::FilterPatch::ISA = qw(PatchReader::Base);
8              
9             sub new {
10 15     15 0 945 my $class = shift;
11 15   33     71 $class = ref($class) || $class;
12 15         621 my $this = $class->SUPER::new();
13 15         36 bless $this, $class;
14              
15 15         31 return $this;
16             }
17              
18             sub start_patch {
19 3     3 0 7 my $this = shift;
20 3 50       47 $this->{TARGET}->start_patch(@_) if $this->{TARGET};
21             }
22              
23             sub end_patch {
24 7     7 0 13 my $this = shift;
25 7 50       62 $this->{TARGET}->end_patch(@_) if $this->{TARGET};
26             }
27              
28             sub start_file {
29 0     0 0 0 my $this = shift;
30 0 0       0 $this->{TARGET}->start_file(@_) if $this->{TARGET};
31             }
32              
33             sub end_file {
34 8     8 0 22 my $this = shift;
35 8 50       51 $this->{TARGET}->end_file(@_) if $this->{TARGET};
36             }
37              
38             sub next_section {
39 0     0 0   my $this = shift;
40 0 0         $this->{TARGET}->next_section(@_) if $this->{TARGET};
41             }
42              
43             1