Branch Coverage

blib/lib/PDF/Collage/Template.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
51 0 66 unless my $method = $self->can('_op_' . $op)
69 0 307 if exists $retval{$nkey}
71 177 130 $auto_expand{$nkey} ? :
76 48 16 $input eq 'last' ? :
80 0 0 unless open my $fh, "-|", @command
83 0 0 unless my($filename, $style) = /\A (.*?): \s* :style=(.*)/msux
88 0 0 unless @candidates
89 0 0 if @candidates == 1
94 0 0 if $candidate->{'style'}{'Regular'} or $candidate->{'style'}{'Normal'}
102 16 0 unless (defined $s->_fonts->{$key})
103 0 16 $key =~ /\A file: (.*) \z/msux ? :
0 16 $key =~ /\A fc: (.*) \z/msux ? :
120 0 16 if ref $input
123 0 16 defined $to ? :
133 0 16 unless defined(my $source_path = $opts->{'from'} // $opts->{'from_path'})
142 0 16 if $target_n
160 0 16 if ($align ne "start")
162 0 0 $align eq 'end' ? :
175 0 16 if defined $plain
176 16 0 if defined $template
177 0 0 if defined $crumbs
185 17 34 if $key eq "op"
186 34 0 if (defined $value) { }
198 0 0 unless my $logger = $self->logger
199 0 0 unless my $method = $logger->can(lc $command->{'level'} // "info")