Condition Coverage

blib/lib/YAML/As/Parsed.pm
Criterion Covered Total %
condition 37 42 88.1


and 3 conditions

line !l l&&!r l&&r condition
160 157 183 1 utf8::is_utf8($string) and not utf8::valid($string)
181 2 331 3 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
190 225 9 41 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
198 222 79 2 not $in_document and @$self
201 9 3 0 @lines and not $lines[0] =~ /^---/
302 0 12 0 defined $indent->[-2] and $indent->[-1] <= $indent->[-2]
325 3 10 5 @$lines and not $lines->[0] =~ /^---/
339 0 0 4 defined $indent->[-2] and $indent->[-1] == $indent->[-2]
406 1 2 1 @$lines and not $lines->[0] =~ /^---/
532 1 3 263 ref $self and @$self

or 3 conditions

line l !l&&r !l&&!r condition
198 9 3 303 not @lines or $lines[0] =~ /^(?:---|\.\.\.)/
289 6 2 615 $string =~ /^(?:-(?:\s|$)|[\@\%\`])/ or $string =~ /:(?:\s|$)/
595 3 53 24 $is_key or $has_string_flag
611 187 4 689 $string =~ /(?:^[~!\@#%&*|>?:,'"`{}\[\]]|^-+$|\s|:\z)/ or $QUOTE{$string}