Branch Coverage

/root/.cpan/build/XML-BindData-0.3.2-0/blib/lib/XML/BindData.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
20 8 59 if (my $if_key = _strip_attr($node, 'tmpl-if'))
23 3 5 if (not $unless || defined $val or $unless and defined $val)
29 10 57 if (my $each_key = _strip_attr($node, 'tmpl-each'))
33 0 10 if (not $to_add or ref $to_add ne 'ARRAY')
46 24 33 if (my $binding = _strip_attr($node, 'tmpl-bind'))
51 2 22 unless (defined $val)
52 1 1 defined $default ? :
58 7 50 if (my $attr_map = _strip_attr($node, 'tmpl-attr-map'))
63 12 5 if defined $value
67 4 53 if (my $attr_defaults = _strip_attr($node, 'tmpl-attr-defaults'))
79 7 3 if not defined $value or $value eq ''
93 0 58 unless defined $key
95 16 42 if $key eq 'this'
107 329 0 if (my $attributes = $node->attributes)
108 55 274 if (my $attr = $attributes->removeNamedItem($attr_name))