Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 111 204 54.4


line true false branch
21 0 1452 $_[1] eq 'import' && (caller())->isa('autouse') ? :
66 0 60 if $$args{-'mixin'}
69 0 60 if $$args{-'filter_dump'}
70 0 60 if $$args{-'filter_save'}
71 0 60 if $$args{-'yaml'}
72 0 60 if $$args{-'dumper'}
76 0 60 if ($$args{-'XXX'})
77 0 0 unless grep /^XXX$/, @EXPORT_BASE
82 24 36 if $$args{-'selfless'} || $$args{-'Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
86 24 36 if $$args{-'Base'} or $$args{-'base'}
90 0 72 unless $class->isa('Spiffy')
95 24 48 $$args{-'Base'} || $$args{-'base'} ? :
104 0 72 unless keys %exportable
112 0 24 unless $exportable{$v}
125 0 24 if $done
128 0 12084 if $status < 0
129 24 12060 if (/^__(?:END|DATA)__\r?$/)
145 0 24 if (@my_subs)
150 0 24 if ($filter_dump)
151 0 24 if ($filter_save)
165 48 24 if defined $$bases_map{$class}
210 0 216 if defined $$args{-'package'}
211 0 216 if defined $default and $$args{-'weak'}
213 0 216 if defined &{"${package}::$field";}
214 0 216 if $$args{-'weak'}
215 24 180 ref $default eq 'HASH' && !keys(%$default) ? :
12 204 ref $default eq 'ARRAY' && !@$default ? :
223 48 168 if ($$args{-'init'})
224 0 48 $$args{-'weak'} ? :
227 96 120 if defined $default
231 0 216 if $$args{-'weak'}
235 23 50 unless exists $_[0]{'data_delim_default'}
143 25 unless $#_ > 0
30 26 unless $#_ > 0 or defined $_[0]{'block_list'}
145 14 unless $#_ > 0
643 95 unless exists $_[0]{'original_values'}
110 326 unless $#_ > 0
27 26 unless $#_ > 0 or defined $_[0]{'block_delim'}
124 63 unless $#_ > 0
109 36 unless exists $_[0]{'_no_diag_on_only'}
30 119 unless $#_ > 0
139 78 unless exists $_[0]{'_filters_map'}
23 12 unless $#_ > 0
55 77 unless exists $_[0]{'_filters'}
45 21 unless $#_ > 0
15 3 unless $#_ > 0
74 78 unless $#_ > 0
90 17 unless $#_ > 0
15 134 unless exists $_[0]{'_next_list'}
144 16 unless $#_ > 0
97 29 unless exists $_[0]{'_filters_delay'}
17 36 unless $#_ > 0
49 130 unless $#_ > 0 or defined $_[0]{'spec'}
133 84 unless $#_ > 0
151 31 unless $#_ > 0
37 59 unless $#_ > 0
36 18 unless $#_ > 0 or defined $_[0]{'data_delim'}
24 13 unless $#_ > 0
22 22 unless exists $_[0]{'block_delim_default'}
8 74 unless $#_ > 0
42 138 unless $#_ > 0
236 0 216 if $@
239 0 216 if defined wantarray
259 0 0 if defined $$args{-'package'}
261 0 0 if defined &{"${package}::$field";}
273 0 0 if defined $$args{-'package'}
275 0 0 if defined &{"${package}::$field";}
291 24 384 if (defined $elem and defined $booleans{$elem}) { }
48 336 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 0 24 @_ && $_[0] =~ /^[01]$/ ? :
303 276 0 wantarray ? :
311 0 0 unless (ref $_[0])
312 0 0 unless defined $_[0]
313 0 0 unless (\$_[0]) =~ /\((\w+)\)$/o
317 0 0 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 12 unless defined $INC{'base.pm'}
393 21 80 unless %{"${_}::";}
101 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 ? :