Branch Coverage

blib/lib/DTL/Fast/Tag/For.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
21 40 0 if ($self->{'parameter'} =~ /^\s*(.+)\s+in\s+(.+?)\s*(reversed)?\s*$/is) { }
26 0 51 if /\./
42 1 39 if ($reversed)
47 0 40 unless (scalar @{$self->{'targets'};})
71 4 59 if ($tag_name eq 'empty') { }
73 1 3 if (scalar @{$self->{'renderers'};} == 2) { }
102 43 2 if ($source_ref eq 'ARRAY' or UNIVERSAL::can($source_data, 'as_array') and $source_data = $source_data->as_array($context)) { }
2 0 elsif ($source_ref eq 'HASH' or UNIVERSAL::can($source_data, 'as_hash') and $source_data = $source_data->as_hash($context)) { }
146 42 1 if (scalar @$source_data) { }
1 0 elsif (scalar @{$self->{'renderers'};} == 2) { }
160 172 19 if ($variables_number == 1) { }
166 19 0 if ($value_type eq 'ARRAY' or UNIVERSAL::can($value, 'as_array') and $value = $value->as_array($context)) { }
174 19 0 if (scalar @$value >= $variables_number) { }
218 1 1 if ($source_size) { }
1 0 elsif (scalar @{$self->{'renderers'};} == 2) { }
220 1 0 if (scalar @{$self->{'targets'};} == 2) { }
264 3 40 $source_size == 1 ? :
286 114 81 $forloop->{'odd'} ? :
287 81 114 $forloop->{'odd0'} ? :
288 81 114 $forloop->{'even'} ? :
289 114 81 $forloop->{'even0'} ? :
291 40 155 if ($forloop->{'counter'} == $forloop->{'length'})