Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 105 204 51.4


line true false branch
21 0 671 $_[1] eq 'import' && (caller())->isa('autouse') ? :
66 0 32 if $$args{-'mixin'}
69 0 32 if $$args{-'filter_dump'}
70 0 32 if $$args{-'filter_save'}
71 0 32 if $$args{-'yaml'}
72 0 32 if $$args{-'dumper'}
76 0 32 if ($$args{-'XXX'})
77 0 0 unless grep /^XXX$/, @EXPORT_BASE
82 16 16 if $$args{-'selfless'} || $$args{-'Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
86 16 16 if $$args{-'Base'} or $$args{-'base'}
90 0 48 unless $class->isa('Spiffy')
95 20 28 $$args{-'Base'} || $$args{-'base'} ? :
104 0 48 unless keys %exportable
112 12 8 unless $exportable{$v}
125 8 16 if $done
128 0 4513 if $status < 0
129 8 4505 if (/^__(?:END|DATA)__\r?$/)
145 0 16 if (@my_subs)
150 0 16 if ($filter_dump)
151 0 16 if ($filter_save)
165 28 16 if defined $$bases_map{$class}
210 0 72 if defined $$args{-'package'}
211 0 72 if defined $default and $$args{-'weak'}
213 0 72 if defined &{"${package}::$field";}
214 0 72 if $$args{-'weak'}
215 8 60 ref $default eq 'HASH' && !keys(%$default) ? :
4 68 ref $default eq 'ARRAY' && !@$default ? :
223 16 56 if ($$args{-'init'})
224 0 16 $$args{-'weak'} ? :
227 32 40 if defined $default
231 0 72 if $$args{-'weak'}
235 82 36 unless exists $_[0]{'original_values'}
61 13 unless $#_ > 0
19 78 unless exists $_[0]{'_no_diag_on_only'}
85 0 unless $#_ > 0
5 83 unless exists $_[0]{'_next_list'}
87 0 unless $#_ > 0
4 64 unless exists $_[0]{'_filters'}
68 0 unless $#_ > 0
3 34 unless $#_ > 0 or defined $_[0]{'data_delim'}
31 0 unless $#_ > 0
1 51 unless $#_ > 0
3 0 unless exists $_[0]{'data_delim_default'}
2 26 unless $#_ > 0
3 55 unless exists $_[0]{'_filters_map'}
57 0 unless $#_ > 0
58 50 unless $#_ > 0
63 129 unless $#_ > 0
60 23 unless $#_ > 0
298 23 unless exists $_[0]{'block_delim_default'}
26 56 unless $#_ > 0
80 3 unless exists $_[0]{'_filters_delay'}
3 20 unless $#_ > 0
3 0 unless $#_ > 0 or defined $_[0]{'spec'}
2 1 unless $#_ > 0
2 24 unless $#_ > 0
25 29 unless $#_ > 0 or defined $_[0]{'block_delim'}
29 1 unless $#_ > 0
9 14 unless $#_ > 0 or defined $_[0]{'block_list'}
13 4 unless $#_ > 0
237 181 unless $#_ > 0
236 0 72 if $@
239 0 72 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 16 132 if (defined $elem and defined $booleans{$elem}) { }
16 116 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 0 16 @_ && $_[0] =~ /^[01]$/ ? :
303 104 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 4 unless defined $INC{'base.pm'}
393 0 12 unless %{"${_}::";}
12 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 ? :