Branch Coverage

blib/lib/WWW/Noss/BaseConfig.pm
Criterion Covered Total %
branch 38 52 73.0


line true false branch
53 0 27 if (defined $new and $new <= 0)
89 0 24 if (ref $new ne "ARRAY")
109 0 24 if (ref $new ne "ARRAY")
121 14 62 if (@{$self->include_title;})
122 0 14 unless (defined $title)
125 4 10 unless (&all(sub { $title =~ /$_/u; } , @{$self->include_title;}))
130 12 60 if (@{$self->exclude_title;})
131 0 12 unless (defined $title)
134 7 5 if (&any(sub { $title =~ /$_/u; } , @{$self->exclude_title;}))
155 0 24 if (ref $new ne "ARRAY")
175 0 24 if (ref $new ne "ARRAY")
187 14 53 if (@{$self->include_content;})
188 0 14 unless (defined $content)
191 4 10 unless (&all(sub { $content =~ /$_/u; } , @{$self->include_content;}))
196 13 50 if (@{$self->exclude_content;})
197 0 13 unless (defined $content)
200 8 5 if (&any(sub { $content =~ /$_/u; } , @{$self->exclude_content;}))
221 0 24 if (ref $new ne "ARRAY")
241 0 24 if (ref $new ne "ARRAY")
253 57 0 defined $tags ? :
255 14 43 if (@{$self->include_tags;})
256 0 14 unless (defined $tags)
259 8 6 if (&any(sub { not exists $tagmap{fc $_}; } , @{$self->include_tags;}))
264 10 39 if (@{$self->exclude_tags;})
265 0 10 unless (defined $tags)
268 4 6 if (&any(sub { exists $tagmap{fc $_}; } , @{$self->exclude_tags;}))