Condition Coverage

blib/lib/Text/Layout.pm
Criterion Covered Total %
condition 24 53 45.2


and 3 conditions

line !l l&&!r l&&r condition
444 0 0 2 @data >= 1 and ref($data[0]) =~ /^PDF::(API2|Builder)\b/
677 9 0 2 $k eq "underline" and $v =~ /^(none|single|double)$/i
7 0 1 $k eq "overline" and $v =~ /^(none|single|double)$/i
2 0 4 $k eq "strikethrough" and $v =~ /^(true|1)$/i
2 0 0 $k eq "strikethrough" and $v =~ /^(false|0)$/i
766 0 0 0 not $self->{'_pango'} and $v =~ /^(-?\d+(?:\.\d*)?)\%$/
0 0 0 not $self->{'_pango'} and $v =~ /^(-?\d+(?:\.\d*)?)e([mx])$/
914 11 0 2 $k eq "strut" and $closed
0 0 0 my $p = $self->get_element_handler($k) and $closed
985 0 7 72 defined $a and $a ne ""
1872 1 2 7 $self->{'_bbcache'} and @{$self->{'_bbcache'};} == ($all ? 9 : 5)

or 2 conditions

line l !l condition
1080 0 5 $description->{'color'} || 'black'

or 3 conditions

line l !l&&r !l&&!r condition
914 1 15 13 $self->{'_sc'}{$k} // $shortcodes{$k}
945 1 0 1 $args->{'width'} // $args->{'w'}
0 0 2 $args->{'descend'} // $args->{'d'}
0 0 2 $args->{'ascend'} // $args->{'a'}
1969 0 0 0 $width || $self->get_width
2098 1 0 0 delete $ctl->{$key} // croak(qq[No such shortcode: "$key"])