Branch Coverage

blib/lib/App/RecordStream/KeyGroups.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
33 27 59 if ($group_spec =~ /^!/) { }
62 25 13 unless ($this->{'KEY_SPECS'})
123 1035 0 if ($record->has_key_spec($this->{'SPEC'}))
165 283 468 if ($spec =~ /$regex/)
171 99 64 if ($this->has_option('sort'))
184 5 158 if ($this->has_option('full_match')) { }
1 157 elsif ($this->has_option('depth')) { }
208 890 1 if ($current_depth >= $min_depth)
209 751 139 if (ref $data eq '' or $this->has_option('return_refs'))
214 2 889 if (ref $data eq 'ARRAY')
218 0 3 if ($current_depth <= $max_depth or $max_depth == -1)
228 175 716 if (ref $data eq 'HASH')
230 728 5 if ($current_depth <= $max_depth or $max_depth == -1)
246 2 39 if ('!' ne substr($spec, 0, 1))
250 0 39 if (length $spec < 2)
263 38 110 if ($current_char eq '!')
264 38 0 if ($last_char ne '\\')
275 1 38 unless $found_end
282 35 1 if (my $normalized_option = $VALID_OPTIONS->{$option}) { }
283 0 35 if (exists $options->{$normalized_option}) { }