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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
enter_scope
2.0
BEGIN
2.0
CRAP 2.0
1 package PDF::FromHTML::Template::Container::Footer;
2  
3 use strict;
4  
5 BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw(PDF::FromHTML::Template::Container::Margin);
8  
9 use PDF::FromHTML::Template::Container::Margin;
10 }
11  
12 sub enter_scope
13 {
14 my $self = shift;
15 my ($context) = @_;
16  
17 $self->SUPER::enter_scope($context);
18  
19 @{$self}{qw/OLD_X OLD_Y/} = map { $context->get($self, $_) } qw(X Y);
20  
21 $context->{X} = 0;
22 $context->{Y} = $context->get($self, 'FOOTER_HEIGHT');
23  
24 return 1;
25 }
26  
27 1;
28 __END__