Condition Coverage

blib/lib/PML.pm
Criterion Covered Total %
condition 117 246 47.5


and 3 conditions

line !l l&&!r l&&r condition
459 0 0 19 defined $self and defined $x
511 0 0 19 defined $self and defined $x
535 19 139 18 defined $line and length $line
552 0 0 2 exists $$self[13]{$$invalid_function[0]} and defined $$self[13]{$$invalid_function[0]}
872 0 0 8 defined $options{'token'} and defined $options{'name'}
879 0 0 0 ref $options{$_} eq 'ARRAY' and ref $options{$_}[0] eq 'CODE'
936 0 0 36 ref $callback eq 'ARRAY' and ref $$callback[0] eq 'CODE'
1046 3 261 65 @tokens == 1 and ref $tokens[0] eq 'ARRAY'
1123 0 0 203 defined $self and defined $line_ref
1136 77 4 1 $loop_functions{$func} and $pre_text =~ s/$RE_LABEL//o
1142 78 0 4 $pre_text and $$self[9]
1164 3 29 0 $token and $label
1179 5 26 1 $token and $label
1197 0 9 0 $token and $label
1210 0 2 0 $token and $label
1221 0 7 0 $token and $label
1278 0 0 75 defined $self and defined $line_ref
1401 0 0 44 defined $self and defined $line_ref
1459 0 0 138 $$self[9] and $$self[10]
1493 0 0 44 $$self[9] and $$self[10]
1517 0 44 0 $$self[9] and $$self[11]
1586 0 1582 103 $last_real_char ne '\\' and $char =~ /^(['"])/o
1582 58 45 $last_real_char ne '\\' and $char =~ /^(['"])/o and $od ne $1
1640 14 31 $last_real_char ne '\\' and $char =~ /^(['"])/o and $od ne $1 and not $sflag
1595 1563 91 0 $char eq $od and $last_real_char ne '\\' || $ds
1600 1365 289 0 $char eq $cd and $last_real_char ne '\\' || $ds
1608 1398 0 0 $last_real_char eq '\\' and $char eq '\\'
1656 0 0 280 defined $self and defined $lines
2457 5 0 0 exists $$self[13]{$name} and $$self[6]
2550 1 0 0 $PML::DEBUG and $@
2736 0 0 223 defined $string and length $string
2864 20 0 0 $@ and $self->warning
2912 0 0 0 defined $$self[0]{$array} and ref $$self[0]{$array} ne 'ARRAY'
2924 0 0 0 defined $$self[0]{$hash} and ref $$self[0]{$hash} ne 'HASH'
2950 0 1 2 defined $ref and $$ref
2955 0 1 0 not $array || $hash and ref $$self[0]{$v} eq 'ARRAY'
2965 0 1 0 not $array || $hash and ref $$self[0]{$v} eq 'ARRAY'
2975 0 0 0 not $array || $hash and ref $$self[0]{$v} eq 'ARRAY'
3060 3 2 0 defined $arg_names[0] and $arg_names[0] eq '_ALL_'
3073 5 0 0 not @args >= @arg_names and $$self[6]

or 2 conditions

line l !l condition
913 0 8 $options{'parse'} || [\&auto_parse, \%options]
1655 158 0 $$self[5] || undef
2050 191 0 $$token[1] || 1
2488 2 0 $self->tokens_execute($$a[0]) || 0
2644 0 0 $$a[0] || 80
0 0 $$a[1] || ''
0 0 $$a[2] || ''
2700 0 1 $$a[0] || ''
2804 16 0 $self->tokens_execute($b) || undef
3022 1 0 $rv || undef
3216 2 0 $rv || undef
3263 3 0 $rv || undef
3281 1 0 $_[1]->data || undef
3345 4 0 $block || $self->tokens_execute($a) || undef
3412 0 1 $label ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
348 2 331 0 ref $ref || $ref
907 0 8 0 $options{'id'} ||= $next_token++
1124 45 0 158 $lines or defined $$self[5]
1127 45 158 0 $lines ||= $$self[5]
1153 31 1 50 exists $function_arg_only{$func} or exists $$self[23]{'function_arg_only'}{$func}
31 1 18 exists $function_arg_block{$func} or exists $$self[23]{'function_arg_block'}{$func}
9 0 9 exists $function_block_no_parse{$func} or exists $$self[23]{'function_block_no_parse'}{$func}
1 1 7 exists $function_block_only{$func} or exists $$self[23]{'function_block_only'}{$func}
1228 1 2 3 $token->id == 14 or exists $$self[13]{$func}
1281 75 0 0 $lines ||= $$self[5]
1288 0 0 75 not defined $x or $x ne '('
1307 17 10 76 $x eq '"' or $x eq q[']
1405 44 0 0 $lines ||= $$self[5]
1463 138 35 0 length $$line_ref or @{$lines;}
1551 256 0 0 $lines ||= $$self[5]
1559 287 87 0 length $$line_ref or @{$lines;}
1595 91 0 0 $last_real_char ne '\\' || $ds
1600 289 0 0 $last_real_char ne '\\' || $ds
1655 122 158 0 $lines ||= $$self[5] || undef
1826 0 0 0 $base ||= cwd()
2039 45 103 0 $context == 1 or $context == 2
2072 0 103 45 $fli == 0 or $fli == 1
103 45 0 $fli == 0 or $fli == 1 or $fli == 2
2901 0 0 25 not $v =~ /^$RE_VAR/o or $v =~ /[\$\{\}]/o
0 0 25 not $v =~ /^$RE_VAR/o or $v =~ /[\$\{\}]/o or $v =~ /^(\.|ARGV)$/o
2940 0 0 3 $array or $hash
2955 0 0 1 $array || $hash
2965 0 0 1 $array || $hash
2975 0 0 0 $array || $hash
3192 0 0 0 not $2 or $2 eq $token->label
3247 1 0 0 not $2 or $2 eq $token->label
3445 371 0 659 $method eq 'file_loc' or $method eq 'fli'