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 1894 691 15706 not $self->{'parse_characters'} || $self->{'encoding'} and $self->{'in_pod'} || $line =~ /^=/s
691 15685 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 5781 22 defined $1 and $1 =~ /[^\S\r\n]/
535 1 0 5802 not $self->{'start_of_pod_block'} and @$paras
1 5170 632 not $self->{'start_of_pod_block'} and @$paras and $paras->[-1][0] eq "~Verbatim"
551 851 2023 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 62 0 do { '???'; $self->{'encoding'} = $e; 1 } and $e eq "HACKRAW"
907 871 0 40 $self->{'errata'} and keys %{$$self{"errata"};}
994 0 894 31 !@$curr_open && @$paras && !grep(($_->[0] ne '~end'), @$paras)
1024 3660 1219 4212 @$paras == 1 and $paras->[0][0] eq '=over' || $paras->[0][0] eq '=item' || $paras->[0][0] eq '~Verbatim' && $self->{'in_pod'}
1099 4471 0 760 $para_type =~ /^=head\d$/s and not $self->{'accept_heads_anywhere'}
4471 754 6 $para_type =~ /^=head\d$/s and not $self->{'accept_heads_anywhere'} and @$curr_open
754 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 755 $para_type =~ s/^=//s and defined($para_type = $self->{'accept_directives'}{$para_type})
1117 0 0 1029 @$curr_open and $over = (grep {$_->[0] eq "=over";} @$curr_open)[-1]
1372 5 201 4975 $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 217 @$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 3208 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 7612 2405 1186 @_ and not ref $_[0]
2106 0 0 10 length $formatting and $$p[$i - 1] =~ /\S/
2332 2416 656 18 $self->{'_output_is_for_JustPod'} and $bracket_count > 1
2366 122 0 3 $3 ne " " and $self->{'_output_is_for_JustPod'}
2398 66 41 2957 @stack and not $stack[-1]
2476 3680 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 8725 925 $self->{'line_count'} ||= 0
132 8725 925 $self->{'paras'} ||= []
137 8371 1279 $self->{'pod_para_count'} ||= 0
646 8 2 $self->{'_current_headings'} ||= []
710 0 2 $self->{'heading_filter'} ||= []
983 5443 925 $self->{'curr_open'} ||= []
1372 4154 821 $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 57 $self->{'content_seen'} ||= 1
1712 177 0 $self->{'content_seen'} ||= 1
2476 3984 84 $lol->[$i] || ''
2495 4 0 $_->[1]{'~really'} || '=over'

or 3 conditions

line l !l&&r !l&&!r condition
208 11 1883 16397 $self->{'parse_characters'} || $self->{'encoding'}
14744 962 691 $self->{'in_pod'} || $line =~ /^=/s
356 0 0 0 $b_ord < $min_cont or $b_ord > 191
540 1 94 5708 $self->{'start_of_pod_block'} or $self->{'last_was_blank'}
1024 1154 3203 1074 $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 4590 @$para == 2 or @$para == 3 and $para->[2] eq ""
3 102 4488 @$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 3613 $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"