Condition Coverage

blib/lib/YAML/As/Parsed.pm
Criterion Covered Total %
condition 6 42 14.2


and 3 conditions

line !l l&&!r l&&r condition
161 3 0 0 utf8::is_utf8($string) and not utf8::valid($string)
182 0 3 0 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
191 3 0 0 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
199 3 0 0 not $in_document and @$self
202 0 0 0 @lines and not $lines[0] =~ /^---/
302 0 0 0 defined $indent->[-2] and $indent->[-1] <= $indent->[-2]
325 0 0 0 @$lines and not $lines->[0] =~ /^---/
339 0 0 0 defined $indent->[-2] and $indent->[-1] == $indent->[-2]
406 0 0 0 @$lines and not $lines->[0] =~ /^---/
532 0 0 0 ref $self and @$self

or 3 conditions

line l !l&&r !l&&!r condition
199 0 0 3 not @lines or $lines[0] =~ /^(?:---|\.\.\.)/
289 0 0 23 $string =~ /^(?:-(?:\s|$)|[\@\%\`])/ or $string =~ /:(?:\s|$)/
595 0 0 0 $is_key or $has_string_flag
611 0 0 0 $string =~ /(?:^[~!\@#%&*|>?:,'"`{}\[\]]|^-+$|\s|:\z)/ or $QUOTE{$string}