Branch Coverage

blib/lib/MooseX/Method/Signatures.pm
Criterion Covered Total %
branch 53 64 82.8


line true false branch
116 135 20 if defined $ret
123 18 2 unless defined $str
125 0 2 if $@ and $@ =~ /^No quotelike operator found/
126 0 2 if $@
140 148 7 unless (substr($linestr, $ctx->offset, 2) eq 'is' or substr($linestr, $ctx->offset, 4) eq 'does')
149 6 11 if (substr($linestr, $ctx->offset, 2) eq 'is') { }
4 7 elsif (substr($linestr, $ctx->offset, 4) eq 'does') { }
166 0 7 unless scalar @traits
171 0 12 if $$t[0] =~ /::/
175 5 7 unless $func
178 0 7 if not defined $proto or length $proto
190 153 2 unless defined $returns
191 0 2 unless $returns eq 'returns'
208 3 152 if $err
215 155 0 unless $self->initialized_context
231 138 17 if defined $proto
232 7 148 if $traits
233 2 153 if defined $ret_tc
238 3 152 if ($self->has_prototype_injections)
239 0 3 if $ctx->declarator ne $self->prototype_injections->{'declarator'}
245 7 148 if ($args{'traits'})
249 1 11 if ($$t[1])
267 7 145 if ($traits)
268 1 6 if (my(@trait_args) = grep({defined $_;} map({$$_[1];} @{$traits;})))
273 136 16 if (defined $name)
274 2 134 ref $name ? :
300 136 16 if (defined $name) { }
306 2 134 if (warnings::enabled('redefine') and my $meta_meth = $meta->get_method($name))
307 1 1 if $meta_meth->isa('MooseX::Method::Signatures::Meta::Method')
312 0 136 $self->has_custom_method_application ? :
318 0 136 if $name =~ /::/
345 0 152 unless defined $line