Condition Coverage

blib/lib/XML/Filter/Conditional.pm
Criterion Covered Total %
condition 42 42 100.0


and 3 conditions

line !l l&&!r l&&r condition
194 4 45 9 $right_namespace and $name =~ /$$self{'switchre'}/
4 27 18 $right_namespace and $name =~ /$$self{'casere'}/
4 20 7 $right_namespace and $name =~ /$$self{'otherwisere'}/
247 21 2 1 defined $state and $state == 3
266 4 35 7 $right_namespace and $name =~ /$$self{'switchre'}/
4 20 15 $right_namespace and $name =~ /$$self{'casere'}/
4 16 4 $right_namespace and $name =~ /$$self{'otherwisere'}/
285 18 1 1 defined $state and $state == 3
297 37 31 13 defined $state and $state == 3

or 2 conditions

line l !l condition
122 1 6 delete $opts{'SwitchTag'} || 'switch'
123 1 6 delete $opts{'CaseTag'} || 'case'
124 1 6 delete $opts{'OtherwiseTag'} || 'otherwise'
126 1 6 $opts{'NamespaceURI'} ||= ''
192 3 55 $$e{'NamespaceURI'} || ''
262 3 43 $$e{'NamespaceURI'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
216 3 8 5 $$self{'MatchAll'} or not $$self{'switch_state'}{'didcase'}