Branch Coverage

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


line true false branch
25 152 603 unless defined $bool
45 0 755 if (keys %args)
52 0 757 if (builtin::blessed($schemas) and $schemas->isa('YAML::PP::Schema')) { }
105 5 750 if (defined $version)
107 1 4 unless (ref $version)
111 0 7 unless ($YAML_VERSIONS{$v})
122 0 2207 if (@_ > 1)
129 0 1494 if (@_ > 1)
136 0 16 if (@_ > 1)
243 120 7 unless (exists $self->{'data'}{$key})
246 39 88 if (ref $val and not builtin::blessed($val))
247 1 38 if (builtin::reftype($val) eq 'HASH' and not tied %$val) { }
2 54 elsif (builtin::reftype($val) eq 'ARRAY' and not tied @$val) { }
266 320 847 if ("$keys->[$i]" eq "$last")
325 13 29 if (ref $val and not builtin::blessed($val))
326 5 8 if (builtin::reftype($val) eq 'HASH' and not tied %$val) { }
1 12 elsif (builtin::reftype($val) eq 'ARRAY' and not tied @$val) { }
393 1 20 unless $_[0]{'style'}