Branch Coverage

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


line true false branch
111 135 20 if defined $ret
118 18 2 unless defined $str
120 0 2 if $@ and $@ =~ /^No quotelike operator found/
121 0 2 if $@
135 148 7 unless (substr($linestr, $ctx->offset, 2) eq 'is' or substr($linestr, $ctx->offset, 4) eq 'does')
144 6 11 if (substr($linestr, $ctx->offset, 2) eq 'is') { }
4 7 elsif (substr($linestr, $ctx->offset, 4) eq 'does') { }
161 0 7 unless scalar @traits
166 0 12 if $$t[0] =~ /::/
170 5 7 unless $func
173 0 7 if not defined $proto or length $proto
185 153 2 unless defined $returns
186 0 2 unless $returns eq 'returns'
203 3 152 if $err
210 155 0 unless $self->initialized_context
226 138 17 if defined $proto
227 7 148 if $traits
228 2 153 if defined $ret_tc
233 3 152 if ($self->has_prototype_injections)
234 0 3 if $ctx->declarator ne $self->prototype_injections->{'declarator'}
240 7 148 if ($args{'traits'})
244 1 11 if ($$t[1])
262 7 145 if ($traits)
263 1 6 if (my(@trait_args) = grep({defined $_;} map({$$_[1];} @{$traits;})))
268 136 16 if (defined $name)
269 2 134 ref $name ? :
295 136 16 if (defined $name) { }
301 2 134 if (warnings::enabled('redefine') and my $meta_meth = $meta->get_method($name))
302 1 1 if $meta_meth->isa('MooseX::Method::Signatures::Meta::Method')
307 0 136 $self->has_custom_method_application ? :
313 0 136 if $name =~ /::/
340 0 152 unless defined $line