Condition Coverage

blib/lib/Business/CompanyDesignator.pm
Criterion Covered Total %
condition 62 73 84.9


and 3 conditions

line !l l&&!r l&&r condition
157 1387 154 0 $alt_pattern_string1 and exists $self->pattern_string_map->{$alt_pattern_string1}
159 10 419 3 $current and $current ne $reference_string
167 0 0 7 $current and $current ne $reference_string
180 0 230 0 $current and $current ne $reference_string
223 1116 412 7772 $lang_re and not $entry->{'lang'} =~ /$lang_re/
225 950 73 505 $type eq 'begin' and not $entry->{'lead'}
227 631 60 332 $type eq 'end_cont' and not $LANG_CONTINUA{$entry->{'lang'}}
238 1030 21 63 $type eq 'end_cont' and $abbr =~ /^\p{ASCII}+$/
263 1144 0 8 ref $lang and ref $lang eq 'ARRAY'
1144 0 8 ref $lang and ref $lang eq 'ARRAY' and @$lang
307 722 0 1006 defined $_ && !ref($_)
357 324 285 677 $end_re and $company_name_match =~ /^\s*(.*?)$punct_class\s*\(?($end_re)\)?\s*$/
364 348 147 114 $end_cont_re and $company_name_match_cont_stripped =~ /^\s*(.*?)\(?($end_cont_re)\)?\s*$/
370 292 56 147 $begin_re and $company_name_match =~ /^\s*\(?($begin_re)\)?$punct_class\s*(.*?)\s*$/
376 288 7 53 $end_re and $allow_embedded
295 11 42 $end_re and $allow_embedded and $company_name_match =~ /(.*?)$punct_class\s*\(?($end_re)\)?(?:\s+(.*?))?$/

or 2 conditions

line l !l condition
68 5 20 $map->{$abbr} ||= []
74 60 1380 $map->{$abbr} ||= []
257 3282 0 $type ||= 'end'
311 749 105 $before // ''
698 156 $des // ''
682 172 $des_std // ''
133 721 $after // ''
331 282 1004 $allow_embedded //= 1

or 3 conditions

line l !l&&r !l&&!r condition
122 1282 691 0 $reference_string ||= $string
240 86 965 0 $entry->{'abbr_std'} || $abbr
298 278 682 20 $des_std ||= $self->pattern_string_map->{$matched_pattern}