Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 113 204 55.3


line true false branch
21 0 1125 $_[1] eq 'import' && (caller())->isa('autouse') ? :
66 0 147 if $$args{-'mixin'}
69 0 147 if $$args{-'filter_dump'}
70 0 147 if $$args{-'filter_save'}
71 0 147 if $$args{-'yaml'}
72 0 147 if $$args{-'dumper'}
76 0 147 if ($$args{-'XXX'})
77 0 0 unless grep /^XXX$/, @EXPORT_BASE
82 63 84 if $$args{-'selfless'} || $$args{-'Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
86 84 63 if $$args{-'Base'} or $$args{-'base'}
90 0 231 unless $class->isa('Spiffy')
95 126 105 $$args{-'Base'} || $$args{-'base'} ? :
104 42 189 unless keys %exportable
112 36 42 unless $exportable{$v}
125 21 63 if $done
128 0 21651 if $status < 0
129 42 21609 if (/^__(?:END|DATA)__\r?$/)
145 0 63 if (@my_subs)
150 0 63 if ($filter_dump)
151 0 63 if ($filter_save)
165 126 84 if defined $$bases_map{$class}
210 0 378 if defined $$args{-'package'}
211 0 378 if defined $default and $$args{-'weak'}
213 0 378 if defined &{"${package}::$field";}
214 0 378 if $$args{-'weak'}
215 42 315 ref $default eq 'HASH' && !keys(%$default) ? :
21 357 ref $default eq 'ARRAY' && !@$default ? :
223 84 294 if ($$args{-'init'})
224 0 84 $$args{-'weak'} ? :
227 168 210 if defined $default
231 0 378 if $$args{-'weak'}
235 128 150 unless exists $_[0]{'_next_list'}
58 81 unless $#_ > 0
132 203 unless $#_ > 0
37 48 unless $#_ > 0
43 6 unless exists $_[0]{'data_delim_default'}
9 76 unless $#_ > 0
24 45 unless exists $_[0]{'block_delim_default'}
53 12 unless $#_ > 0
160 76 unless $#_ > 0
47 32 unless $#_ > 0
28 10 unless exists $_[0]{'_filters_map'}
7 3 unless $#_ > 0
2 64 unless $#_ > 0
176 23 unless $#_ > 0
3 51 unless exists $_[0]{'_no_diag_on_only'}
49 50 unless $#_ > 0
21 103 unless $#_ > 0 or defined $_[0]{'data_delim'}
23 88 unless $#_ > 0
177 72 unless $#_ > 0 or defined $_[0]{'block_delim'}
56 57 unless $#_ > 0
54 43 unless exists $_[0]{'_filters'}
40 91 unless $#_ > 0
32 28 unless $#_ > 0 or defined $_[0]{'spec'}
42 94 unless $#_ > 0
255 68 unless exists $_[0]{'original_values'}
160 64 unless $#_ > 0
51 49 unless $#_ > 0 or defined $_[0]{'block_list'}
58 42 unless $#_ > 0
23 67 unless exists $_[0]{'_filters_delay'}
79 27 unless $#_ > 0
236 0 378 if $@
239 0 378 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 84 690 if (defined $elem and defined $booleans{$elem}) { }
84 606 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 0 84 @_ && $_[0] =~ /^[01]$/ ? :
303 525 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 21 unless defined $INC{'base.pm'}
393 0 33 unless %{"${_}::";}
33 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 ? :