Condition Coverage

blib/lib/CPAN/Meta/YAML.pm
Criterion Covered Total %
condition 37 42 88.1


and 3 conditions

line !l l&&!r l&&r condition
224 157 181 1 utf8::is_utf8($string) and not utf8::valid($string)
245 2 329 3 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
254 226 9 43 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
262 223 78 2 not $in_document and @$self
265 9 3 0 @lines and not $lines[0] =~ /^---/
367 0 9 0 defined $$indent[-2] and $$indent[-1] <= $$indent[-2]
391 3 12 5 @$lines and not $$lines[0] =~ /^---/
405 0 0 4 defined $$indent[-2] and $$indent[-1] == $$indent[-2]
473 1 2 1 @$lines and not $$lines[0] =~ /^---/
605 1 3 265 ref $self and @$self

or 3 conditions

line l !l&&r !l&&!r condition
262 9 3 303 not @lines or $lines[0] =~ /^(?:---|\.\.\.)/
354 6 2 606 $string =~ /^(?:-(?:\s|$)|[\@\%\`])/ or $string =~ /:(?:\s|$)/
668 3 53 34 $is_key or $has_string_flag
684 189 4 697 $string =~ /(?:^[~!\@#%&*|>?:,'"`{}\[\]]|^-+$|\s|:\z)/ or $QUOTE{$string}