Branch Coverage

blib/lib/YAML/Perl/Representer.pm
Criterion Covered Total %
branch 35 54 64.8


line true false branch
52 0 78 if ($self->ignore_aliases($data)) { }
60 78 0 if (defined $self->alias_key)
61 3 75 if ($self->represented_objects->{$self->alias_key})
90 42 33 if (not ref $data or overload::Method($data, '""'))
94 15 18 if ($type eq 'ARRAY') { }
15 3 elsif ($type eq 'HASH') { }
3 0 elsif ($type eq 'SCALAR') { }
95 3 12 $class ? :
101 3 12 $class ? :
107 3 0 $class ? :
122 0 45 @_ ? :
123 3 42 if ($tag)
127 45 0 unless (defined $style)
135 45 0 if (defined $self->alias_key)
145 0 15 @_ ? :
148 0 15 defined $flow_style ? :
154 15 0 if (defined $self->alias_key)
160 9 0 unless ($node_item->isa('YAML::Perl::Node::Scalar') or $node_item->style)
167 15 0 unless (defined $flow_style)
168 0 15 if (defined $self->default_flow_style) { }
182 0 15 @_ ? :
185 0 15 defined $flow_style ? :
191 15 0 if (defined $self->alias_key)
202 0 15 unless ($node_key->isa('YAML::Perl::Node::Scalar') and not $node_key->style)
208 6 9 unless ($node_value->isa('YAML::Perl::Node::Scalar') and not $node_value->style)
216 15 0 unless (defined $flow_style)
217 0 15 if (defined $self->default_flow_style) { }