Condition Coverage

blib/lib/YAML/Parser.pm
Criterion Covered Total %
condition 77 138 55.8


and 3 conditions

line !l l&&!r l&&r condition
4141 6 6478 0 $type ne "any" and typeof($value) ne $type
4182 2 6374 5764 $i > 0 and not +($n = $self->{'state'}[--$i]{'name'}) =~ /_/u
4244 140 134 0 defined $max and $max < 0
4254 58 0 216 $count >= $min and !defined($max) || $count <= $max
4264 12 10 0 defined $max and $max < 0
4274 0 2 20 $count >= $min and !defined($max) || $count <= $max
4321 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
4344 2 0 76 $low le substr($self->{'input'}, $self->{'pos'}, 1) and substr($self->{'input'}, $self->{'pos'}, 1) le $high
4445 0 6 18 $i > 0 and not defined $state->[$i]{'end'}
4541 0 4 0 $pos > 0 && substr($self->{'input'}, $pos - 1, 1) =~ /^[\-\?\:]$/u
4554 4 0 0 $in_seq and not length $pre
4577 0 0 2 defined $3 and length $3
4588 0 2 0 $m > 0 and $pre =~ /^.{$m}\ /mu
4669 0 0 0 $type eq "?" and not $self->{'trace_off'}
4675 0 0 0 $type ne "?" and not $self->{'trace_off'}
4682 0 0 0 $prev_type eq "?" and $prev_level eq $level
4835 0 0 0 $self->{'cache'}[-1] && $self->{'cache'}[-1][0] && $self->{'cache'}[-1][0]{'event'} eq $type && $self->{'cache'}[-1][0]
4994 0 2 0 @$lines and $lines->[-1]{'text'} eq ""
5153 12 0 1 $type eq "+DOC" and $_->{'explicit'}
5154 12 1 0 $type eq "-DOC" and $_->{'explicit'}
5155 12 1 0 $type eq "+MAP" and $_->{'flow'}
5156 12 0 1 $type eq "+SEQ" and $_->{'flow'}

or 2 conditions

line l !l condition
229 0 0 \$_[0] // "???"
4106 36 6450 $type //= "boolean"
4259 228 264 $max // "null"
4279 34 14 $max // "null"
4626 0 0 $ENV{'TRACE_QUIET'} || ''
4633 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
4032 0 2 0 length $input == 0 or $input =~ /\n\z/u
4111 0 2 6484 isNumber($func) or isString($func)
4116 6484 0 0 $func->{'trace'} //= $func->{'name'}
4137 2422 24 6484 isFunction($value) or isArray($value)
4166 6568 6376 0 $func->{'receivers'} //= $self->make_receivers
4248 178 134 42 not defined $max or $count < $max
4254 86 130 0 !defined($max) || $count <= $max
4268 38 10 6 not defined $max or $count < $max
4274 12 10 0 !defined($max) || $count <= $max
4310 88 0 1806 $self->{'pos'} >= $self->{'end'} || $self->state_curr->{'doc'} && $self->start_of_line && substr($self->{'input'}, $self->{'pos'}) =~ /^(?:---|\.\.\.)(?=\s|\z)/u
4321 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
4524 4 560 2800 $self->{'pos'} == 0 || $self->{'pos'} >= $self->{'end'} || substr($self->{'input'}, $self->{'pos'} - 1, 1) eq "\n"
4636 0 0 0 $self->{'trace_on'} or $call eq $self->trace_start
4736 0 0 4 shift() || &false()
4739 0 0 2 shift() || &false()
4742 4 0 2 shift() || &false()
4748 2 0 2 shift() || &false()