Branch Coverage

blib/lib/XML/Filter/DetectWS.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
71 0 0 if (UNIVERSAL::can($handler, $cb)) { }
81 0 0 if ($$self{'SkipIgnorableWS'}) { }
0 0 elsif (UNIVERSAL::can($handler, 'ignorable_whitespace')) { }
101 0 0 if (UNIVERSAL::can($handler, 'start_cdata') and UNIVERSAL::can($handler, 'end_cdata')) { }
139 0 0 unless $$parent{'State'} == PRESERVE_WS()
149 0 0 unless $$parent{'State'} == PRESERVE_WS()
159 0 0 unless $$parent{'State'} == PRESERVE_WS()
173 0 0 unless defined $event
175 0 0 defined $$self{'PreserveWS'} ? :
188 0 0 unless defined $event
200 0 0 if (defined $pres) { }
209 0 0 if ($$self{'NoText'}{$$event{'Name'}})
227 0 0 if exists $$prev{'Loc'}
239 0 0 if ($$self{'InCDATA'})
245 0 0 unless $$parent{'State'} == PRESERVE_WS()
250 0 0 unless length $text
253 0 0 if ($state == PRESERVE_WS()) { }
0 0 elsif ($state == NO_TEXT_START()) { }
0 0 elsif ($state == NO_TEXT_ONLY_WS()) { }
0 0 elsif ($state == NO_TEXT_ENDS_IN_NON_WS()) { }
0 0 elsif ($state == NO_TEXT_ENDS_IN_WS()) { }
0 0 elsif ($state == START()) { }
0 0 elsif ($state == ONLY_WS()) { }
281 0 0 if (length $1)
286 0 0 if (length $2)
291 0 0 if (length $3)
300 0 0 if (length $1)
304 0 0 if (length $2)
309 0 0 if (length $3)
318 0 0 if (length $1)
320 0 0 if ($state == ENDS_IN_NON_WS()) { }
330 0 0 if (length $2)
332 0 0 if ($state == ENDS_IN_WS()) { }
364 0 0 if ($$prev{'EventType'} eq 'attlist_decl' and $$prev{'ElementName'} eq $$event{'ElementName'}) { }
427 0 0 if ($$self{'NoText'}{$tag})
431 0 0 $$event{'PreserveWS'} ? :
452 0 0 if (defined $prev and $$prev{'EventType'} eq $eventType) { }
459 0 0 if defined $wsLocation