Condition Coverage

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


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] =~ /^---/
366 0 13 0 defined $indent->[-2] and $indent->[-1] <= $indent->[-2]
390 3 12 5 @$lines and not $lines->[0] =~ /^---/
404 0 0 4 defined $indent->[-2] and $indent->[-1] == $indent->[-2]
472 1 2 1 @$lines and not $lines->[0] =~ /^---/
602 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] =~ /^(?:---|\.\.\.)/
353 6 2 606 $string =~ /^(?:-(?:\s|$)|[\@\%\`])/ or $string =~ /:(?:\s|$)/
665 3 53 34 $is_key or $has_string_flag
681 189 4 697 $string =~ /(?:^[~!\@#%&*|>?:,'"`{}\[\]]|^-+$|\s|:\z)/ or $QUOTE{$string}