Branch Coverage

blib/lib/MooseX/Emulate/Class/Accessor/Fast.pm
Criterion Covered Total %
branch 37 56 66.0


line true false branch
106 0 9 if $meta->is_immutable
111 1 14 if $meta->find_attribute_by_name($attr_name)
117 14 1 if ($reader eq $writer) { }
118 4 10 $meta->has_method($reader) ? :
122 14 0 if ($attr_name eq $reader)
124 1 13 if $meta->has_method($alias)
128 0 1 $meta->has_method($writer) ? :
129 1 0 unless $meta->has_method($reader)
147 0 4 if $meta->is_immutable
151 1 4 if $meta->find_attribute_by_name($attr_name)
154 0 5 $meta->has_method($reader) ? :
155 5 0 if scalar @opts
158 5 0 if ($reader eq $attr_name and $reader eq $self->mutator_name_for($attr_name))
159 4 1 unless $meta->has_method("_${attr_name}_accessor")
176 0 4 if $meta->is_immutable
180 1 4 if $meta->find_attribute_by_name($attr_name)
183 0 5 $meta->has_method($writer) ? :
184 5 0 if scalar @opts
187 5 0 if ($writer eq $attr_name and $writer eq $self->accessor_name_for($attr_name))
188 4 1 unless $meta->has_method("_${attr_name}_accessor")
231 0 1 unless scalar @_
234 0 1 unless my $attr = $meta->find_attribute_by_name($k)
237 0 1 @_ > 1 ? :
248 0 2 unless scalar @_
253 0 2 unless my $attr = $meta->find_attribute_by_name($_)
256 0 2 @_ > 1 ? :
273 2 1 unless @_
274 0 1 @_ > 1 ? :