Branch Coverage

blib/lib/Mite/Signature.pm.mite.pm
Criterion Covered Total %
branch 59 120 49.1


line true false branch
65 7 0 *{$_;}{'CODE'} ? :
69 0 7 *{$_;}{'CODE'} ? :
79 0 9 ref $_[0] ? :
85 0 9 @_ == 1 ? :
0 9 $meta->{'HAS_BUILDARGS'} ? :
90 9 0 if (exists $args->{'class'})
92 0 9 unless &blessed($args->{'class'}) and $args->{'class'}->isa("Mite::Package")
98 9 0 if ref $self->{'class'}
103 0 9 unless exists $args->{'method_name'}
104 0 9 unless do {
107 9 0 if (defined $args->{'method_name'})
109 0 9 unless ref \$args->{'method_name'} eq "SCALAR"
118 6 3 if (exists $args->{'named'})
119 0 6 unless do {
129 15 3 unless exists $args->{$_}
133 3 6 if (exists $args_for_positional->{'positional'})
134 0 3 unless do {
147 2 7 exists $args->{'method'} ? :
149 0 8 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
162 1 8 if (exists $args->{'head'})
163 0 1 unless do {
169 0 1 unless (do {
171 0 0 if defined $tmp and not ref $tmp
185 0 9 if (exists $args->{'tail'})
186 0 0 unless do {
192 0 0 unless (do {
194 0 0 if defined $tmp and not ref $tmp
211 2 7 exists $args->{'named_to_list'} ? :
213 0 9 unless do {
218 0 1 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
233 0 9 unless $meta->{'BUILD'}
9 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
240 0 9 if @unknown
250 0 9 unless $meta->{'BUILD'}
258 0 0 defined ${^GLOBAL_PHASE} ? :
262 0 0 unless $meta->{'DEMOLISH'}
269 0 0 if $e
298 1 1 exists $_[0]{'compiler'} ? :
300 0 1 unless &blessed($default_value)
309 0 2 unless &blessed($object)
314 0 14 unless @_ == 1
317 6 8 exists $_[0]{'compiler'} ? :
319 0 8 unless &blessed($default_value)
339 0 10 unless &blessed($_[1]) and $_[1]->isa("Mite::Package")
345 10 49 @_ > 1 ? :
350 0 10 unless defined wantarray
362 0 10 $self->$has ? :
363 10 0 @_ == 2 ? :
370 0 18 unless @_ == 1
373 10 8 exists $_[0]{'head'} ? :
375 0 8 unless do {
380 0 8 unless (ref $default_value eq "ARRAY")
382 0 0 if defined $tmp and not ref $tmp
493 0 18 unless @_ == 1
496 9 9 exists $_[0]{'should_bless'} ? :
499 0 5 unless not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
532 0 0 if exists $DOES{$role}
533 0 0 if $role eq "Mite::Signature"
534 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
537 0 0 if $meta->can("does_role") and $meta->does_role($role)