lib/PDF/FromHTML/Template/Container/Always.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
enter_scope
2.0
exit_scope
2.0
CRAP 2.0
1 package PDF::FromHTML::Template::Container::Always;
2  
3 use strict;
4  
5 BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw(PDF::FromHTML::Template::Container);
8  
9 use PDF::FromHTML::Template::Container;
10 }
11  
12 sub enter_scope
13 {
14 my $self = shift;
15 my ($context) = @_;
16  
17 $self->SUPER::enter_scope($context);
18  
19 $self->{OLD_TRIP} = $context->pagebreak_tripped;
20 $context->reset_pagebreak;
21  
22 return 1;
23 }
24  
25 sub exit_scope
26 {
27 my $self = shift;
28 my ($context) = @_;
29  
30 $context->pagebreak_tripped($self->{OLD_TRIP});
31  
32 $self->reset;
33  
34 return $self->SUPER::exit_scope($context);
35 }
36  
37 sub mark_as_rendered {}
38  
39 1;
40 __END__