Condition Coverage

blib/lib/YAML/As/Parsed.pm
Criterion Covered Total %
condition 18 42 42.8


and 3 conditions

line !l l&&!r l&&r condition
161 7 13 1 utf8::is_utf8($string) and not utf8::valid($string)
182 0 20 0 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
191 23 0 2 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
199 22 1 0 not $in_document and @$self
202 1 0 0 @lines and not $lines[0] =~ /^---/
302 0 0 0 defined $indent->[-2] and $indent->[-1] <= $indent->[-2]
325 0 4 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 1 0 6 ref $self and @$self

or 3 conditions

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