Branch Coverage

blib/lib/MooseX/Storage/Engine.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
47 41 43 unless exists $options{'check_version'}
48 41 43 unless exists $options{'check_authority'}
64 167 253 unless $attr->has_value($self->object)
70 155 213 unless exists $$data{$attr->name}
85 93 330 if ref $value
88 233 188 if (defined $value and $attr->has_type_constraint)
90 0 233 unless defined $type_converter
102 76 137 if (ref $value and not $options->{'disable_cycle_check'} || $self->class->does('MooseX::Storage::Traits::DisableCycleDetection'))
109 199 13 if (defined $value and $attr->has_type_constraint)
125 3 162 if exists $self->seen->{&refaddr($value)}
134 0 0 if exists $self->seen->{&refaddr($value)}
149 100 84 $self->_has_object ? :
298 0 2 unless exists $handlers{'expand'} and exists $handlers{'collapse'}
304 0 0 if exists $TYPES{$type_name}
314 30 436 if $type_constraint->parent and $type_constraint->parent eq 'Maybe' and not $type_constraint->parent->can('type_parameter')
321 4 432 if ($type_constraint->can('find_type_for'))
323 4 0 if defined $tc
330 381 51 if exists $TYPES{$type_constraint->name}
343 51 197 if $type_constraint->is_subtype_of($type)