Branch Coverage

blib/lib/Exporter/Declare.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
58 0 13 if $class->can('alter_import_args')
63 2 11 if $class->can('before_import')
68 6 7 if $class->can('after_import')
77 6 0 unless my $args = $specs->config->{'magic'}
78 0 0 unless ref $args and ref $args eq 'ARRAY'
81 0 0 unless eval { do { require Exporter::Declare::Magic } }
95 0 13 if $class eq 'Exporter::Declare' and grep {$_ eq '-magic';} @args
164 6 60 ref $param[-1] ? :
167 60 6 unless $ref
171 56 10 if $type eq '&'
193 59 5 reftype($params{'ref'}) eq 'CODE' ? :
206 5 61 $params{'type'} ? :
0 66 $params{'extra_exporter_props'} ? :
219 0 45 unless $name
231 29 16 unless keys %{"${name}::";}
232 14 2 if defined *{"${name}::export_meta";}{'CODE'}
233 1 1 unless @{"${name}::ISA";}
242 15 30 if @$args and _is_exporter_class(@$args)