Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 127 204 62.2


line true false branch
20 0 723 $_[1] eq 'import' && (caller())->isa('autouse') ? :
65 0 88 if $$args{-'mixin'}
68 0 88 if $$args{-'filter_dump'}
69 0 88 if $$args{-'filter_save'}
70 0 88 if $$args{-'yaml'}
71 0 88 if $$args{-'dumper'}
75 0 88 if ($$args{-'XXX'})
76 0 0 unless grep /^XXX$/, @EXPORT_BASE
81 43 45 if $$args{-'selfless'} || $$args{-'Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
85 43 45 if $$args{-'Base'} or $$args{-'base'}
89 0 129 unless $class->isa('Spiffy')
94 56 73 $$args{-'Base'} || $$args{-'base'} ? :
103 0 129 unless keys %exportable
111 0 30 unless $exportable{$v}
124 43 43 if $done
127 0 15859 if $status < 0
128 0 15859 if (/^__(?:END|DATA)__\r?$/)
144 0 43 if (@my_subs)
149 0 43 if ($filter_dump)
150 0 43 if ($filter_save)
164 73 43 if defined $$bases_map{$class}
209 0 270 if defined $$args{-'package'}
210 0 270 if defined $default and $$args{-'weak'}
212 0 270 if defined &{"${package}::$field";}
213 0 270 if $$args{-'weak'}
214 30 225 ref $default eq 'HASH' && !keys(%$default) ? :
15 255 ref $default eq 'ARRAY' && !@$default ? :
222 60 210 if ($$args{-'init'})
223 0 60 $$args{-'weak'} ? :
227 120 150 if defined $default
231 0 270 if $$args{-'weak'}
235 167 64 unless exists $_[0]{'_filters_delay'}
31 40 unless $#_ > 0
62 22 unless $#_ > 0 or defined $_[0]{'data_delim'}
30 54 unless $#_ > 0
62 17 unless exists $_[0]{'original_values'}
27 25 unless $#_ > 0
49 31 unless $#_ > 0
35 1 unless exists $_[0]{'data_delim_default'}
111 18 unless $#_ > 0
58 76 unless $#_ > 0
79 1 unless exists $_[0]{'_no_diag_on_only'}
132 17 unless $#_ > 0
8 7 unless exists $_[0]{'_next_list'}
11 5 unless $#_ > 0
12 19 unless $#_ > 0 or defined $_[0]{'spec'}
20 16 unless $#_ > 0
32 51 unless $#_ > 0
20 12 unless exists $_[0]{'_filters'}
26 15 unless $#_ > 0
20 0 unless exists $_[0]{'block_delim_default'}
6 2 unless $#_ > 0
147 52 unless $#_ > 0
54 43 unless $#_ > 0 or defined $_[0]{'block_delim'}
41 74 unless $#_ > 0
13 24 unless $#_ > 0
45 32 unless $#_ > 0 or defined $_[0]{'block_list'}
49 76 unless $#_ > 0
26 19 unless $#_ > 0
24 12 unless exists $_[0]{'_filters_map'}
66 31 unless $#_ > 0
236 0 270 if $@
239 0 270 if defined wantarray
259 32 7 if defined $$args{-'package'}
261 11 6 if defined &{"${package}::$field";}
273 27 41 if defined $$args{-'package'}
275 21 4 if defined &{"${package}::$field";}
291 49 492 if (defined $elem and defined $booleans{$elem}) { }
74 420 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 6 70 @_ && $_[0] =~ /^[01]$/ ? :
303 372 61 wantarray ? :
311 2 10 unless (ref $_[0])
312 38 24 unless defined $_[0]
313 65 59 unless (\$_[0]) =~ /\((\w+)\)$/o
317 16 3 unless overload::StrVal($_[0]) =~ /\((\w+)\)$/o
328 0 0 @_ ? :
338 0 0 if $method =~ s/.*:://
341 0 0 @_ ? :
342 0 0 ref $_[0] ? :
345 0 0 $seen || ($seen = $_ eq $caller_class) ? :
350 0 0 if $super_class eq $class
351 0 0 if (defined &{"${super_class}::$method";})
352 0 0 if $method eq 'AUTOLOAD'
369 0 15 unless defined $INC{'base.pm'}
393 0 285 unless %{"${_}::";}
285 0 unless grep {eval "require $_" unless %{"${_}::";}; $_->isa('Spiffy');} @base_classes
398 0 0 if $inheritor->isa($base_class)
399 0 0 unless $base_class->isa('Spiffy')
416 0 0 if $target_class eq 'mixin'
418 0 0 unless my $mixin_class = shift()
438 0 0 @_ ? :
440 0 0 $methods{$_} ? :
456 0 0 /^:(.*)/ ? :
0 0 /^!:(.*)/ ? :
463 0 0 if (@roles and $roles[0] =~ /^!/)
470 0 0 if /^!(.*)/
480 0 0 if $class eq 'Spiffy'
484 0 0 if defined &{"${class}::$_";}
488 0 0 if @{"${class}::ISA";}
499 0 0 if ($dump eq 'dumper')
517 0 0 wantarray ? :
526 0 0 wantarray ? :