Branch Coverage

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


line true false branch
19 40 0 if ($self->{'parameter'} =~ /^\s*(.+)\s+in\s+(.+?)\s*(reversed)?\s*$/is) { }
24 0 51 if /\./
40 1 39 if ($reversed)
45 0 40 unless (scalar @{$self->{'targets'};})
69 4 59 if ($tag_name eq 'empty') { }
71 1 3 if (scalar @{$self->{'renderers'};} == 2) { }
100 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)) { }
144 42 1 if (scalar @$source_data) { }
1 0 elsif (scalar @{$self->{'renderers'};} == 2) { }
158 172 19 if ($variables_number == 1) { }
164 19 0 if ($value_type eq 'ARRAY' or UNIVERSAL::can($value, 'as_array') and $value = $value->as_array($context)) { }
172 19 0 if (scalar @$value >= $variables_number) { }
216 1 1 if ($source_size) { }
1 0 elsif (scalar @{$self->{'renderers'};} == 2) { }
218 1 0 if (scalar @{$self->{'targets'};} == 2) { }
261 3 40 $source_size == 1 ? :
284 114 81 $forloop->{'odd'} ? :
285 81 114 $forloop->{'odd0'} ? :
286 81 114 $forloop->{'even'} ? :
287 114 81 $forloop->{'even0'} ? :
289 40 155 if ($forloop->{'counter'} == $forloop->{'length'})