Branch Coverage

blib/lib/YAML/Hobo.pm
Criterion Covered Total %
branch 9 16 56.2


line true false branch
20 0 0 if (wantarray) { }
35 0 7 unless defined $string
36 0 7 unless length $string
37 1 6 if (&Scalar::Util::looks_like_number($string))
40 1 0 if ($is_key or $has_string_flag) { }
47 0 6 if ($string =~ /[\x00-\x09\x0b-\x0d\x0e-\x1f\x7f-\x9f\'\n]/)
56 0 6 if ($string =~ /(?:^[~!\@#%&*|>?:,'"`{}\[\]]|^-+$|\s|:\z)/ or $QUOTE{$string})
61 4 2 $is_key ? :