Branch Coverage

blib/lib/Test/XML/Ordered.pm
Criterion Covered Total %
branch 51 72 70.8


line true false branch
71 3 230 if ($self->_got->read <= 0)
83 3 196 if ($self->_expected->read <= 0)
106 145 49 defined $ns ? :
116 0 2 unless (exists $args->{'param'})
126 2 0 exists $args->{'got'} ? :
137 73 195 if ($type == 14) { }
38 157 elsif ($exp_type == 14) { }
0 157 elsif ($type != $exp_type) { }
39 118 elsif ($type == 3) { }
60 58 elsif ($type == 1) { }
162 0 39 if ($got_text ne $expected_text)
176 0 61 if ($self->_got->localName ne $self->_expected->localName)
180 0 61 if (_ns($self->_got) ne _ns($self->_expected))
190 45 77 if ($elem->moveToFirstAttribute)
195 59 13 if ($ns ne "http://www.w3.org/2000/xmlns/")
210 0 45 if ($elem->moveToElement <= 0)
224 14 45 length $attr->{'ns'} ? :
232 0 8 unless $Test::XML::Ordered::a->{'ns'} cmp $Test::XML::Ordered::b->{'ns'}
244 0 29 if ($got_a->{'ns'} ne $exp_a->{'ns'})
254 0 29 if ($got_a->{'localName'} ne $exp_a->{'localName'})
264 1 28 if ($got_a->{'value'} ne $exp_a->{'value'})
275 1 59 if (@got_attrs)
285 0 59 if (@exp_attrs)
298 2 58 if (my $ret = &$check())
306 1 57 if ($is_got_empty and not $is_expected_empty) { }
0 114 elsif ($is_expected_empty and not $is_got_empty) { }
309 0 1 if (my $ret = &$check())
317 0 0 if (my $ret = &$check())
336 0 2 if ($status_struct->{'param'} eq 'nodeType') { }
0 2 elsif ($status_struct->{'param'} eq 'text') { }
0 2 elsif ($status_struct->{'param'} eq 'element_name') { }
0 2 elsif ($status_struct->{'param'} eq 'mismatch_ns') { }
1 1 elsif ($status_struct->{'param'} eq 'extra_attr_got') { }
0 1 elsif ($status_struct->{'param'} eq 'attr_localName') { }
1 0 elsif ($status_struct->{'param'} eq 'attr_value') { }
417 2 3 unless ($verdict)