Branch Coverage

lib/Template/Plugin/String.pm
Criterion Covered Total %
branch 38 48 79.1


line true false branch
40 25 46 ref $class ? :
41 13 58 @args && ref $args[-1] eq 'HASH' ? :
47 62 4 @args ? :
5 66 defined $config->{'text'} ? :
61 8 63 if $filter
70 60 10 unless @{$self->{'filters'};}
112 2 8 if (ref $filter eq 'HASH') { }
6 2 elsif (ref $filter ne 'ARRAY') { }
123 5 12 if (@$filter and ref $filter->[0] || !CORE::length($filter->[0])) { }
125 3 2 if ($args) { }
126 0 3 unless ref $args eq 'ARRAY'
185 2 0 if ($len < $width)
200 1 0 if $width > $len
213 1 0 if $width > $len
221 0 1 unless defined $format
307 0 3 unless defined $length
309 1 2 if CORE::length $self->{'text'} <= $length
320 4 2 if (defined $length) { }
321 2 2 if (defined $replacement) { }
338 0 1 unless defined $n
346 0 1 unless defined $search
347 0 1 unless defined $replace
355 0 2 unless defined $search
365 1 4 unless defined $split