Branch Coverage

blib/lib/Var/Pairs.pm
Criterion Covered Total %
branch 41 88 46.5


line true false branch
16 0 21 if (eval { do { require autobox } })
38 21 0 if (not @exports) { }
43 0 0 @bad == 1 ? :
0 0 if @bad
56 0 21 if ($autoboxing)
73 3 4 ref($_) =~ /SCALAR|REF/u ? :
82 5 6 ref($_) =~ /SCALAR|REF/u ? :
89 1 45 if (not defined wantarray) { }
1 44 elsif (not wantarray) { }
100 2 42 unless ($container_type =~ /^ARRAY$|^HASH$/u)
108 0 0 if (not wantarray and $iterator_for{$ID})
114 174 53 $container_is_array ? :
115 29 13 $container_is_array ? :
129 134 0 ref $_[0] && var_name(1, $_[0]) ? :
132 3 18 if exists $iterator_for{$ID}
133 21 113 unless $iterator_for{$ID}
139 0 0 unless my($next) = &$container_ref()
142 0 21 ref $container_ref eq 'CODE' ? :
150 0 16 if (not defined wantarray) { }
0 16 elsif (not wantarray) { }
161 0 16 unless ($container_type =~ /^ARRAY$|^HASH$/u)
169 14 2 if ($container_type eq 'ARRAY') { }
181 91 0 ref $_[0] && var_name(1, $_[0]) ? :
184 4 11 if exists $iterator_for{$ID}
185 15 76 unless $iterator_for{$ID}
190 0 0 unless my($next) = &$container_ref()
193 0 15 ref $container_ref eq 'CODE' ? :
204 0 0 ref $_[0] && var_name(1, $_[0]) ? :
207 0 0 if exists $iterator_for{$ID}
208 0 0 unless $iterator_for{$ID}
213 0 0 unless my($next) = &$container_ref()
216 0 0 ref $container_ref eq 'CODE' ? :
219 0 0 unless my(@next) = _get_each_kv($ID)
243 0 0 if (not defined wantarray) { }
0 0 elsif (not wantarray) { }
254 0 0 ref $values eq 'ARRAY' ? :
263 0 0 ref $values eq 'ARRAY' ? :
274 0 0 $return_as_pairs ? :
284 0 134 if (ref $iterator eq 'CODE') { }
286 0 0 if @kv
293 18 116 unless (defined $each_pair)
307 0 91 ref $iterator eq 'CODE' ? :
310 11 80 unless (@each_kv)
315 91 0 wantarray ? :