Condition Coverage

blib/lib/Pod/Simple/BlackBox.pm
Criterion Covered Total %
condition 136 196 69.3


and 3 conditions

line !l l&&!r l&&r condition
208 1848 691 15694 not $self->{'parse_characters'} || $self->{'encoding'} and $self->{'in_pod'} || $line =~ /^=/s
691 15673 21 not $self->{'parse_characters'} || $self->{'encoding'} and $self->{'in_pod'} || $line =~ /^=/s and $line =~ /$non_ascii_re/
391 0 6 0 $cs_re and $copy =~ /$cs_re/
392 0 6 0 $cn_re and $copy =~ /$cn_re/
393 0 6 0 $cn_re and $copy =~ /$cn_re/
402 0 5 1 $rare_blocks_re and $copy =~ /$rare_blocks_re/
407 0 5 0 $later_latin_re and $copy =~ /$later_latin_re/
408 0 5 0 $later_latin_re and $copy =~ /$later_latin_re/
530 0 5754 22 defined $1 and $1 =~ /[^\S\r\n]/
535 1 0 5775 not $self->{'start_of_pod_block'} and @$paras
1 5143 632 not $self->{'start_of_pod_block'} and @$paras and $paras->[-1][0] eq "~Verbatim"
551 846 2006 33 $2 and $2 ne " "
565 0 0 717 not $self->{'start_of_pod_block'} and @$paras
0 544 173 not $self->{'start_of_pod_block'} and @$paras and $paras->[-1][0] eq "~Verbatim"
711 0 2 0 @selections and $selections[0] eq "+"
776 0 54 0 do { '???'; $self->{'encoding'} = $e; 1 } and $e eq "HACKRAW"
907 863 0 40 $self->{'errata'} and keys %{$$self{"errata"};}
994 0 886 31 !@$curr_open && @$paras && !grep(($_->[0] ne '~end'), @$paras)
1024 3640 1198 4212 @$paras == 1 and $paras->[0][0] eq '=over' || $paras->[0][0] eq '=item' || $paras->[0][0] eq '~Verbatim' && $self->{'in_pod'}
1099 4455 0 757 $para_type =~ /^=head\d$/s and not $self->{'accept_heads_anywhere'}
4455 751 6 $para_type =~ /^=head\d$/s and not $self->{'accept_heads_anywhere'} and @$curr_open
751 0 6 $para_type =~ /^=head\d$/s and not $self->{'accept_heads_anywhere'} and @$curr_open and $curr_open->[-1][0] eq "=over"
1114 0 12 752 $para_type =~ s/^=//s and defined($para_type = $self->{'accept_directives'}{$para_type})
1117 0 0 1026 @$curr_open and $over = (grep {$_->[0] eq "=over";} @$curr_open)[-1]
1372 5 201 4964 $seen_legal_directive and not $self->{'~tried_gen_errata'}
1519 0 0 0 @$curr_open && $curr_open->[-1][0] eq '=for'
1537 0 0 130 @$curr_open and $curr_open->[-1][0] eq "=for"
1708 0 0 214 @$curr_open and $curr_open->[-1][0] eq "=over"
1730 0 0 0 @$curr_open and $over = (grep {$_->[0] eq "=over";} @$curr_open)[-1]
1901 1382 3197 3 @$para == 3 and $para->[2] eq ""
1931 434 9 10 $indent and ref $indent eq "CODE"
1961 0 431 103 $self->{'accept_codes'} and $self->{'accept_codes'}{'VerbatimFormatted'}
1964 50 53 76 @$para > 3 and not $para->[-1] =~ /\S/
2005 7601 2405 1180 @_ and not ref $_[0]
2106 0 0 10 length $formatting and $$p[$i - 1] =~ /\S/
2332 2413 656 18 $self->{'_output_is_for_JustPod'} and $bracket_count > 1
2366 119 0 3 $3 ne " " and $self->{'_output_is_for_JustPod'}
2398 66 41 2957 @stack and not $stack[-1]
2476 3661 0 388 ref($lol->[$i] || '') and UNIVERSAL::isa($lol->[$i], "ARRAY")
2529 458 0 26 /^-?(?:[123456789]\d*|0)(?:\.\d+)?$/s and $_ ne "-0"

or 2 conditions

line l !l condition
121 8667 917 $self->{'line_count'} ||= 0
132 8667 917 $self->{'paras'} ||= []
137 8313 1271 $self->{'pod_para_count'} ||= 0
646 8 2 $self->{'_current_headings'} ||= []
710 0 2 $self->{'heading_filter'} ||= []
983 5422 917 $self->{'curr_open'} ||= []
1372 4148 816 $self->{'content_seen'} ||= 1
1486 50 77 $para->[1]{'~really'} ||= "=begin"
1487 40 87 !$dont_ignore || 0
1488 66 61 $to_resolve || 0
1497 40 87 not $dont_ignore or scalar grep($_->[1]{'~ignore'}, @$curr_open)
1500 76 11 $self->{'content_seen'} ||= 1
1568 87 0 $self->{'content_seen'} ||= 1
1690 120 54 $self->{'content_seen'} ||= 1
1712 174 0 $self->{'content_seen'} ||= 1
2476 3965 84 $lol->[$i] || ''
2495 4 0 $_->[1]{'~really'} || '=over'

or 3 conditions

line l !l&&r !l&&!r condition
208 11 1837 16385 $self->{'parse_characters'} || $self->{'encoding'}
14740 954 691 $self->{'in_pod'} || $line =~ /^=/s
356 0 0 0 $b_ord < $min_cont or $b_ord > 191
540 1 94 5681 $self->{'start_of_pod_block'} or $self->{'last_was_blank'}
1024 1148 3203 1059 $paras->[0][0] eq '=over' || $paras->[0][0] eq '=item' || $paras->[0][0] eq '~Verbatim' && $self->{'in_pod'}
1158 3 1 0 $item_type eq "number" or $item_type eq "bullet"
1771 0 0 0 $item_type eq "number" or $item_type eq "bullet"
1901 0 3 4579 @$para == 2 or @$para == 3 and $para->[2] eq ""
3 102 4477 @$para == 2 or @$para == 3 and $para->[2] eq "" or $para->[1]{'~cooked'}
1926 1 1 451 not defined $tab_width or $tab_width =~ /\D/
2159 0 0 0 ref $p->[$i] or ref $$p[$i + 1]
2208 2 875 3602 $preserve_space or $self->{'preserve_whitespace'}
2529 57 1 534 ref $_ eq "ARRAY" or ref $_ eq "Pod::Simple::LinkSection"
0 0 484 $_ eq 0 or /^-?(?:[123456789]\d*|0)(?:\.\d+)?$/s and $_ ne "-0"