Branch Coverage

blib/lib/Mite/Signature.pm.mite.pm
Criterion Covered Total %
branch 59 116 50.8


line true false branch
63 7 0 *{$_;}{'CODE'} ? :
67 0 7 *{$_;}{'CODE'} ? :
77 0 9 ref $_[0] ? :
83 0 9 @_ == 1 ? :
0 9 $meta->{'HAS_BUILDARGS'} ? :
88 9 0 if (exists $args->{'class'})
90 0 9 unless &blessed($args->{'class'}) and $args->{'class'}->isa("Mite::Package")
96 9 0 if ref $self->{'class'}
101 0 9 unless exists $args->{'method_name'}
102 0 9 unless do {
105 9 0 if (defined $args->{'method_name'})
107 0 9 unless ref \$args->{'method_name'} eq "SCALAR"
116 6 3 if (exists $args->{'named'})
117 0 6 unless do {
127 15 3 unless exists $args->{$_}
131 3 6 if (exists $args_for_positional->{'positional'})
132 0 3 unless do {
145 2 7 exists $args->{'method'} ? :
147 0 8 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
160 1 8 if (exists $args->{'head'})
161 0 1 unless do {
167 0 1 unless (do {
169 0 0 if defined $tmp and not ref $tmp
183 0 9 if (exists $args->{'tail'})
184 0 0 unless do {
190 0 0 unless (do {
192 0 0 if defined $tmp and not ref $tmp
209 2 7 exists $args->{'named_to_list'} ? :
211 0 9 unless do {
216 0 1 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
231 0 9 unless $meta->{'BUILD'}
9 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
238 0 9 if @unknown
248 0 9 unless $meta->{'BUILD'}
256 0 0 defined ${^GLOBAL_PHASE} ? :
260 0 0 unless $meta->{'DEMOLISH'}
267 0 0 if $e
296 1 1 exists $_[0]{'compiler'} ? :
298 0 1 unless &blessed($default_value)
307 0 2 unless &blessed($object)
312 0 14 unless @_ == 1
315 6 8 exists $_[0]{'compiler'} ? :
317 0 8 unless &blessed($default_value)
337 0 10 unless &blessed($_[1]) and $_[1]->isa("Mite::Package")
343 10 49 @_ > 1 ? :
348 0 10 unless defined wantarray
360 0 10 $self->$has ? :
361 10 0 @_ == 2 ? :
368 0 18 unless @_ == 1
371 10 8 exists $_[0]{'head'} ? :
373 0 8 unless do {
378 0 8 unless (ref $default_value eq "ARRAY")
380 0 0 if defined $tmp and not ref $tmp
491 0 18 unless @_ == 1
494 9 9 exists $_[0]{'should_bless'} ? :
497 0 5 unless not ref $default_value and !defined($default_value) || $default_value eq '' || $default_value eq '0' || $default_value eq '1'
530 0 0 if exists $DOES{$role}
531 0 0 if $role eq "Mite::Signature"