Condition Coverage

blib/lib/YAML/Tiny.pm
Criterion Covered Total %
condition 36 42 85.7


and 3 conditions

line !l l&&!r l&&r condition
224 157 184 1 utf8::is_utf8($string) and not utf8::valid($string)
245 2 332 3 @lines and $lines[0] =~ /^\%YAML[: ][\d\.]+.*\z/
254 226 9 43 defined $1 and not $1 =~ /^(?:\#.+|\%YAML[: ][\d\.]+)\z/
262 223 81 2 not $in_document and @$self
265 9 3 0 @lines and not $lines[0] =~ /^---/
367 0 13 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] =~ /^---/
603 1 3 265 ref $self and @$self

or 3 conditions

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