Condition Coverage

blib/lib/YAML/Parser.pm
Criterion Covered Total %
condition 74 129 57.3


and 3 conditions

line !l l&&!r l&&r condition
4137 6 6478 0 $type ne "any" and typeof($value) ne $type
4178 2 6374 5764 $i > 0 and not +($n = $self->{'state'}[--$i]{'name'}) =~ /_/u
4240 140 134 0 defined $max and $max < 0
4250 58 0 216 $count >= $min and !defined($max) || $count <= $max
4260 12 10 0 defined $max and $max < 0
4270 0 2 20 $count >= $min and !defined($max) || $count <= $max
4317 32 1256 266 $self->state_curr->{'doc'} and $self->start_of_line
1288 266 0 $self->state_curr->{'doc'} and $self->start_of_line and substr($self->{'input'}, $self->{'pos'}) =~ /^(?:---|\.\.\.)(?=\s|\z)/u
4340 2 0 76 $low le substr($self->{'input'}, $self->{'pos'}, 1) and substr($self->{'input'}, $self->{'pos'}, 1) le $high
4441 0 6 18 $i > 0 and not defined $state->[$i]{'end'}
4537 0 4 0 $pos > 0 && substr($self->{'input'}, $pos - 1, 1) =~ /^[\-\?\:]$/u
4550 4 0 0 $in_seq and not length $pre
4650 0 0 0 $type eq "?" and not $self->{'trace_off'}
4656 0 0 0 $type ne "?" and not $self->{'trace_off'}
4663 0 0 0 $prev_type eq "?" and $prev_level eq $level
4816 0 0 0 $self->{'cache'}[-1] && $self->{'cache'}[-1][0] && $self->{'cache'}[-1][0]{'event'} eq $type && $self->{'cache'}[-1][0]
4975 0 2 0 @$lines and $lines->[-1]{'text'} eq ""
5131 12 0 1 $type eq "+DOC" and $_->{'explicit'}
5132 12 1 0 $type eq "-DOC" and $_->{'explicit'}
5133 12 1 0 $type eq "+MAP" and $_->{'flow'}
5134 12 0 1 $type eq "+SEQ" and $_->{'flow'}

or 2 conditions

line l !l condition
229 0 0 \$_[0] // "???"
4102 36 6450 $type //= "boolean"
4255 228 264 $max // "null"
4275 34 14 $max // "null"
4607 0 0 $ENV{'TRACE_QUIET'} || ''
4614 0 0 $args //= []

or 3 conditions

line l !l&&r !l&&!r condition
71 3096 6088 0 $trace || $name
131 6490 50 2638 ref $_[0] || $_[0] =~ /^-?\d+$/u
4107 0 2 6484 isNumber($func) or isString($func)
4112 6484 0 0 $func->{'trace'} //= $func->{'name'}
4133 2422 24 6484 isFunction($value) or isArray($value)
4162 6568 6376 0 $func->{'receivers'} //= $self->make_receivers
4244 178 134 42 not defined $max or $count < $max
4250 86 130 0 !defined($max) || $count <= $max
4264 38 10 6 not defined $max or $count < $max
4270 12 10 0 !defined($max) || $count <= $max
4306 88 0 1806 $self->{'pos'} >= $self->{'end'} || $self->state_curr->{'doc'} && $self->start_of_line && substr($self->{'input'}, $self->{'pos'}) =~ /^(?:---|\.\.\.)(?=\s|\z)/u
4317 0 0 1554 $self->{'pos'} >= $self->{'end'} or $self->state_curr->{'doc'} and $self->start_of_line and substr($self->{'input'}, $self->{'pos'}) =~ /^(?:---|\.\.\.)(?=\s|\z)/u
4520 4 560 2800 $self->{'pos'} == 0 || $self->{'pos'} >= $self->{'end'} || substr($self->{'input'}, $self->{'pos'} - 1, 1) eq "\n"
4617 0 0 0 $self->{'trace_on'} or $call eq $self->trace_start
4717 0 0 4 shift() || &false()
4720 0 0 2 shift() || &false()
4723 4 0 2 shift() || &false()
4729 2 0 2 shift() || &false()