Branch Coverage

blib/lib/Data/Transformator.pm
Criterion Covered Total %
branch 84 140 60.0


line true false branch
346 100 164 if ($$current{'type'} eq 'SCALAR')
354 0 100 if ($debug_identity_transform)
358 0 0 if ($debug_identity_transform2)
370 21 243 if ($previous_type eq 'ROOT') { }
190 53 elsif ($previous_type eq 'HASH') { }
53 0 elsif ($previous_type eq 'ARRAY') { }
383 0 190 if ($debug_identity_transform2)
400 0 53 if ($debug_identity_transform2)
415 0 0 if ($debug_identity_transform)
419 0 0 if ($debug_identity_transform2)
426 0 264 if ($debug_identity_transform3)
455 533 22 if (defined $component_key)
478 0 533 if (exists $$self{'simple_transformators'})
486 0 0 if ($$context{'path'} =~ /$matcher/) { }
492 0 0 if (exists $$transformator{'key'}) { }
0 0 elsif (exists $$transformator{'code'}) { }
522 0 0 if ($transformation_result)
526 0 0 if (exists $$result{'content'} and defined $$result{'content'}) { }
556 193 340 if (exists $$self{'transformators'})
679 528 0 if ($top_index > 0) { }
703 264 0 if ($previous) { }
745 0 404 if ($debug_context)
766 0 404 if ($debug_context)
794 558 16 if ($component_key)
800 568 6 defined $component_key ? :
806 0 574 if ($debug_enabled)
817 0 574 if ($debug_context)
840 401 6 defined $contents ? :
848 0 407 if (_context_has_seen($context, $contents_output) and 0)
852 0 0 if ($debug_context)
866 162 245 if (not $_) { }
870 0 162 if ($debug_enabled)
884 26 219 if (/^ARRAY$/)
885 0 26 if ($debug_enabled)
898 208 11 if (/^HASH$/)
899 0 208 if ($debug_enabled)
911 0 11 if ($debug_enabled)
921 8 3 if (/=HASH/)
922 0 8 if ($debug_enabled)
933 0 3 if (/=ARRAY/)
934 0 0 if ($debug_enabled)
1001 20 6 if ($$self{'apply_identity_transformation'})
1021 0 64 defined $$self{'sort'} ? :
1059 6 63 if (exists $$self{'array_filter'})
1064 0 69 if $filter_data eq 0
1075 2 24 if (scalar @$contents eq 0)
1114 0 162 if ($debug_enabled)
1125 100 62 if ($$self{'apply_identity_transformation'})
1130 156 6 if (defined $contents) { }
1179 144 72 if ($$self{'apply_identity_transformation'})
1196 15 199 defined $$self{'sort'} ? :
1227 103 240 if (exists $$self{'hash_filter'})
1233 35 308 if $filter_data eq 0
1244 14 202 if (scalar keys %$contents eq 0)
1301 2 28 if (not $data and $$self{'source'})
1341 0 3 unless ($prefix)
1357 4 83 if ($$context{'path'} =~ m[[^/]/$array_name_quoted$])
1364 8 75 if ($$context{'path'} =~ m([^/]/$array_name_quoted/\[([0-9])*\]$))
1374 8 0 if ($eval) { }
1397 9 66 if ($$context{'path'} =~ m([^/]/$array_name_quoted/\[([0-9])*\]/[^/]+$))
1405 9 0 if ($eval) { }
1440 4 2 unless ($prefix)
1456 6 138 if ($$context{'path'} =~ m[[^/]/$hash_name_quoted$])
1465 24 114 if ($$context{'path'} =~ m[[^/]/$hash_name_quoted/([^/])*$])
1475 24 0 if ($eval) { }
1592 0 0 $_[0]{'path'} =~ m[/b2$] ? :
1599 0 0 $_[0]{'path'} =~ m[/c2] ? :
1601 0 0 $$tree{'devices'} ? :
1638 0 0 if ($$context{'path'} =~ m[^[^/]*/([^/]*)/([^/]*?function[^/]*?)$])
1651 0 0 if ($$context{'path'} =~ m[^[^/]*/([^/]*)/([^/]*led[^/]*)$])