Branch Coverage

blib/lib/YAML/PP.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
25 153 603 unless defined $bool
46 0 756 if (keys %args)
53 0 758 if (builtin::blessed($schemas) and $schemas->isa('YAML::PP::Schema')) { }
107 5 751 if (defined $version)
109 1 4 unless (ref $version)
113 0 7 unless ($YAML_VERSIONS{$v})
124 0 2212 if (@_ > 1)
131 0 1494 if (@_ > 1)
138 0 16 if (@_ > 1)
245 120 7 unless (exists $self->{'data'}{$key})
248 39 88 if (ref $val and not builtin::blessed($val))
249 1 38 if (builtin::reftype($val) eq 'HASH' and not tied %$val) { }
2 54 elsif (builtin::reftype($val) eq 'ARRAY' and not tied @$val) { }
268 320 847 if ("$keys->[$i]" eq "$last")
327 13 29 if (ref $val and not builtin::blessed($val))
328 5 8 if (builtin::reftype($val) eq 'HASH' and not tied %$val) { }
1 12 elsif (builtin::reftype($val) eq 'ARRAY' and not tied @$val) { }
395 1 20 unless $_[0]{'style'}