Branch Coverage

inc/Spiffy.pm
Criterion Covered Total %
branch 112 206 54.3


line true false branch
20 0 407 $_[1] eq 'import' && (caller())->isa('autouse') ? :
66 0 298 if $args->{'-mixin'}
68 0 298 if $args->{'-filter_dump'}
69 0 298 if $args->{'-filter_save'}
70 0 298 if $args->{'-yaml'}
71 0 298 if $args->{'-dumper'}
75 0 298 if ($args->{'-XXX'})
76 0 0 unless grep /^XXX$/, @EXPORT_BASE
82 130 168 if $args->{'-selfless'} || $args->{'-Base'} and not $$filtered_files{(caller $stack_frame)[1]}++
86 168 130 if $args->{'-Base'} or $args->{'-base'}
89 0 474 unless $class->isa("Spiffy")
94 252 222 $args->{'-Base'} || $args->{'-base'} ? :
103 38 436 unless keys %exportable
111 234 84 unless $exportable{$v}
124 130 130 if $done
127 0 49818 if $status < 0
128 0 49818 if (/^__(?:END|DATA)__\r?$/)
144 0 130 if (@my_subs)
149 0 130 if ($filter_dump)
150 0 130 if ($filter_save)
165 252 176 if defined $bases_map->{$class}
209 0 820 if defined $args->{'-package'}
211 0 368 if defined $default and $args->{'-weak'}
212 0 820 if defined &{"${package}::$field";}
213 0 820 if $args->{'-weak'}
214 92 682 ref $default eq 'HASH' && !keys(%$default) ? :
46 774 ref $default eq 'ARRAY' && !@$default ? :
222 184 636 if ($args->{'-init'})
223 0 184 $args->{'-weak'} ? :
227 368 452 if defined $default
232 0 820 if $args->{'-weak'}
235 11 25 unless $#_ > 0
8 7 unless $#_ > 0 or defined $_[0]{'block_delim'}
4 28 unless $#_ > 0
24 33 unless exists $_[0]{'data_delim_default'}
9 30 unless $#_ > 0
27 11 unless $#_ > 0 or defined $_[0]{'data_delim'}
21 31 unless $#_ > 0
19 23 unless $#_ > 0 or defined $_[0]{'spec'}
52 30 unless $#_ > 0
37 13 unless exists $_[0]{'_no_diag_on_only'}
19 22 unless $#_ > 0
26 40 unless $#_ > 0
8 5 unless exists $_[0]{'block_delim_default'}
61 12 unless $#_ > 0
6 36 unless exists $_[0]{'_filters_map'}
34 9 unless $#_ > 0
13 36 unless $#_ > 0
15 34 unless exists $_[0]{'original_values'}
48 51 unless $#_ > 0
22 13 unless $#_ > 0
16 23 unless exists $_[0]{'_next_list'}
5 27 unless $#_ > 0
19 19 unless $#_ > 0 or defined $_[0]{'block_list'}
82 19 unless $#_ > 0
6 18 unless exists $_[0]{'_filters_delay'}
36 100 unless $#_ > 0
27 15 unless $#_ > 0
63 12 unless $#_ > 0
66 28 unless exists $_[0]{'_filters'}
20 13 unless $#_ > 0
236 0 820 if $@
239 0 820 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 168 1534 if (defined $elem and defined $booleans{$elem}) { }
184 1350 elsif (defined $elem and defined $pairs{$elem} and @_) { }
292 0 168 @_ && $_[0] =~ /^[01]$/ ? :
303 1118 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 46 unless defined $INC{'base.pm'}
393 0 48 unless %{"${_}::";}
48 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 if ($methods{$_}) { }
456 0 0 /^:(.*)/ ? :
0 0 if (/^!:(.*)/) { }
0 0 elsif (/^:(.*)/) { }
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 ? :