Branch Coverage

blib/lib/Locale/Maketext/Utils/Phrase/Norm.pm
Criterion Covered Total %
branch 51 64 79.6


line true false branch
19 3 6 ref $_[-1] eq 'HASH' ? :
38 0 76 if ref $ns
40 67 9 ref $_[-1] eq 'HASH' ? :
47 51 0 @_ ? :
51 25 $conf->{'skip_defaults_when_given_filters'} ? :
48 0 376 $n =~ /[:']/ ? :
50 34 0 if exists $conf->{'exclude_filters'}{$n} and $conf->{'exclude_filters'}{$n} or exists $conf->{'exclude_filters'}{$name} and $conf->{'exclude_filters'}{$name}
52 342 0 if (Module::Want::have_mod($name)) { }
53 342 0 if (my $cr = $name->can('normalize_maketext_string')) { }
69 0 76 unless (@filters)
74 49 0 $conf->{'run_extra_filters'} ? :
49 27 exists $conf->{'run_extra_filters'} ? :
85 3 73 if (exists $conf->{'maketext_object'})
86 2 1 unless $new_obj->set_maketext_object($conf->{'maketext_object'})
94 3 1 if (ref $mt_obj) { }
95 2 1 if ($mt_obj->can('makethis')) { }
113 78 15 if defined $_[0]{'maketext_object'}
134 0 0 if $_[0]{'run_extra_filters'}
145 4 124 unless (defined $string)
150 0 124 if exists $self->{'cache'}{$string}
183 81 709 if ($filter_modifies_string)
209 706 84 if ($self->{'cache'}{$string}{'status'})
210 39 667 if (not $filter_rc) { }
599 68 elsif ($self->{'cache'}{$string}{'status'} != -1) { }
218 0 43 if not $filter_rc and $self->{'stop_filter_on_error'}
251 70 44 if $_[0]{'aggregate_result'} ne $_[0]{'orig_str'}
273 148 0 unless $self->get_violations
294 1025 384 unless @{$_[0]{'violations'};}
299 869 400 unless @{$_[0]{'warnings'};}
308 166 837 $_[0]->get_warnings ? :
312 156 847 $_[0]->get_violations ? :
325 276 727 if $_[0]{'orig_str'} ne $_[0]{'new_str'}