Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 106 200 53.0


line true false branch
21 0 638 $_[1] eq 'import' && (caller())->isa('autouse') ? :
67 0 78 if $$args{-'mixin'}
69 0 78 if $$args{-'filter_dump'}
70 0 78 if $$args{-'filter_save'}
71 0 78 if $$args{-'yaml'}
72 0 78 if $$args{-'dumper'}
76 0 78 if ($$args{-'XXX'})
77 0 0 unless grep /^XXX$/, @EXPORT_BASE
83 31 47 if $$args{-'selfless'} || $$args{-'Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
87 31 47 if $$args{-'Base'} or $$args{-'base'}
90 0 94 unless $class->isa('Spiffy')
95 31 63 $$args{-'Base'} || $$args{-'base'} ? :
104 0 94 unless keys %exportable
112 0 31 unless $exportable{$v}
125 0 31 if $done
128 0 15076 if $status < 0
129 31 15045 if (/^__(?:END|DATA)__\r?$/)
145 0 31 if (@my_subs)
150 0 31 if ($filter_dump)
151 0 31 if ($filter_save)
166 62 32 if defined $bases_map->{$class}
210 0 271 if defined $$args{-'package'}
212 0 271 if defined $default and $$args{-'weak'}
213 0 271 if defined &{"${package}::$field";}
214 0 271 if $$args{-'weak'}
215 32 223 ref $default eq 'HASH' && !keys(%$default) ? :
16 255 ref $default eq 'ARRAY' && !@$default ? :
223 64 207 if ($$args{-'init'})
224 0 64 $$args{-'weak'} ? :
227 112 159 if defined $default
232 0 271 if $$args{-'weak'}
235 117 32 unless $#_ > 0 or defined $_[0]{'data_delim'}
18 21 unless $#_ > 0
30 24 unless exists $_[0]{'_next_list'}
28 14 unless $#_ > 0
102 8 unless exists $_[0]{'_filters_delay'}
12 66 unless $#_ > 0
40 20 unless exists $_[0]{'original_values'}
23 74 unless $#_ > 0
51 15 unless exists $_[0]{'data_delim_default'}
24 10 unless $#_ > 0
68 5 unless exists $_[0]{'block_delim_default'}
15 12 unless $#_ > 0
37 44 unless $#_ > 0
26 13 unless $#_ > 0 or defined $_[0]{'spec'}
29 60 unless $#_ > 0
83 21 unless $#_ > 0
16 16 unless exists $_[0]{'_filters'}
22 15 unless $#_ > 0
20 42 unless $#_ > 0 or defined $_[0]{'block_list'}
56 37 unless $#_ > 0
48 15 unless $#_ > 0
91 46 unless $#_ > 0
27 48 unless $#_ > 0 or defined $_[0]{'block_delim'}
39 9 unless $#_ > 0
97 23 unless $#_ > 0
37 33 unless exists $_[0]{'_filters_map'}
42 7 unless $#_ > 0
32 88 unless $#_ > 0
236 0 271 if $@
239 0 271 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 31 478 if (defined $elem and defined $booleans{$elem}) { }
64 414 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 0 31 @_ && $_[0] =~ /^[01]$/ ? :
303 349 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] ? :
346 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 16 unless defined $INC{'base.pm'}
393 0 82 unless %{"${_}::";}
82 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 ? :