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
4132 6 6480 0 $type ne 'any' and typeof($value) ne $type
4173 2 6376 5760 $i > 0 and not +($n = $self->{'state'}[--$i]{'name'}) =~ /_/u
4235 140 134 0 defined $max and $max < 0
4245 58 0 216 $count >= $min and !defined($max) || $count <= $max
4255 12 10 0 defined $max and $max < 0
4265 0 2 20 $count >= $min and !defined($max) || $count <= $max
4312 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
4335 2 0 76 $low le substr($self->{'input'}, $self->{'pos'}, 1) and substr($self->{'input'}, $self->{'pos'}, 1) le $high
4436 0 6 18 $i > 0 and not defined $state->[$i]{'end'}
4532 0 4 0 $pos > 0 && substr($self->{'input'}, $pos - 1, 1) =~ /^[\-\?\:]$/u
4545 4 0 0 $in_seq and not length $pre
4645 0 0 0 $type eq '?' and not $self->{'trace_off'}
4651 0 0 0 $type ne '?' and not $self->{'trace_off'}
4658 0 0 0 $prev_type eq '?' and $prev_level eq $level
4811 0 0 0 $self->{'cache'}[-1] && $self->{'cache'}[-1][0] && $self->{'cache'}[-1][0]{'event'} eq $type && $self->{'cache'}[-1][0]
4969 0 2 0 @$lines and $lines->[-1]{'text'} eq ''
5125 12 0 1 $type eq '+DOC' and $_->{'explicit'}
5126 12 1 0 $type eq '-DOC' and $_->{'explicit'}
5127 12 1 0 $type eq '+MAP' and $_->{'flow'}
5128 12 0 1 $type eq '+SEQ' and $_->{'flow'}

or 2 conditions

line l !l condition
228 0 0 \$_[0] // '???'
4097 36 6452 $type //= 'boolean'
4250 228 264 $max // 'null'
4270 34 14 $max // 'null'
4602 0 0 $ENV{'TRACE_QUIET'} || ''
4609 0 0 $args //= []

or 3 conditions

line l !l&&r !l&&!r condition
71 3096 6090 0 $trace || $name
130 6492 50 2638 ref $_[0] || $_[0] =~ /^-?\d+$/u
4102 0 2 6486 isNumber($func) or isString($func)
4107 6486 0 0 $func->{'trace'} //= $func->{'name'}
4128 2424 24 6486 isFunction($value) or isArray($value)
4157 6570 6378 0 $func->{'receivers'} //= $self->make_receivers
4239 178 134 42 not defined $max or $count < $max
4245 86 130 0 !defined($max) || $count <= $max
4259 38 10 6 not defined $max or $count < $max
4265 12 10 0 !defined($max) || $count <= $max
4301 88 0 1806 $self->{'pos'} >= $self->{'end'} || $self->state_curr->{'doc'} && $self->start_of_line && substr($self->{'input'}, $self->{'pos'}) =~ /^(?:---|\.\.\.)(?=\s|\z)/u
4312 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
4515 4 560 2800 $self->{'pos'} == 0 || $self->{'pos'} >= $self->{'end'} || substr($self->{'input'}, $self->{'pos'} - 1, 1) eq "\n"
4612 0 0 0 $self->{'trace_on'} or $call eq $self->trace_start
4712 0 0 4 shift() || &false()
4715 0 0 2 shift() || &false()
4718 4 0 2 shift() || &false()
4724 2 0 2 shift() || &false()