Condition Coverage

blib/lib/YAML/As/Parsed.pm
Criterion Covered Total %
condition 14 42 33.3


and 3 conditions

line !l l&&!r l&&r condition
161 5 12 1 utf8::is_utf8($string) and not utf8::valid($string)
182 0 17 0 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
191 19 0 0 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
199 18 0 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 2 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 4 ref $self and @$self

or 3 conditions

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