Branch Coverage

File:lib/XML/Parser/Lite/Tree/XPath/Test.pm
Coverage:60.0%

line%coveragebranch
4050TFif (not $tokener->parse($path))
4850TFif (not $tree->build_tree($$tokener{'tokens'}))
6050TFunless ($dump_got eq $dump)
7550TFunless ('ARRAY' eq ref $nodes)
8750TFunless $ok
9050TFif (not $ok)
102100TFif ($key eq 'nodename') { }
100TFelsif ($key eq 'attributecount') { }
100TFelsif ($key eq 'type') { }
100TFelsif ($key eq 'value') { }
10650TFunless $ok
11250TFunless $ok
11850TFunless $ok
12450TFunless $ok
12950TFunless $ok
13250TFunless $ok
13950TFif ($bad)
16950TFif (not $ret)
17850TFif ($$ret{'type'} eq 'number') { }
18150TFif ($$ret{'value'} != $expected)
19550TFif (not $ret)
20450TFif ($$ret{'type'} eq 'string') { }
20750TFif ($$ret{'value'} ne $expected)
22150TFif ($ret) { }
22550TFif ($$xpath{'error'} =~ /$expected/) { }
24250TFif (not $ret)
25150TFif ($$ret{'type'} eq 'boolean') { }
253100TFif $expected and $$ret{'value'}
254100TFif not $expected and not $$ret{'value'}
25850TFunless ($ok)