Branch Coverage

blib/lib/Data/Stag/BaseHandler.pm
Criterion Covered Total %
branch 53 114 46.4


line true false branch
281 512 23 if @_
289 93 0 if @_
309 95 0 if $self->can('init')
315 0 17 if (@_)
323 0 0 unless ($self->errhandler)
336 0 0 unless ($self->errhandler->depth)
351 0 0 if (ref $err)
360 5 0 if @_
366 0 0 if @_
373 0 3407 if @_
381 0 0 if grep {$in eq $_;} @{$self->stack;}
392 0 2 if @_
398 0 0 if @_
399 0 0 unless $$self{'_remove_elts'}
405 0 0 if @_
406 0 0 unless $$self{'_flatten_elts'}
411 0 0 if @_
412 0 0 unless $$self{'_skip_elts'}
419 0 0 if @_
420 0 0 unless $$self{'_rename_elts'}
427 0 0 if (wantarray)
455 0 517 if (grep {$ev eq $_;} $self->SKIP)
459 0 517 if (%REPLACE)
465 0 517 if ($self->can($m)) { }
0 517 elsif ($self->can('catch_start')) { }
488 0 330 if (ref $arg) { }
494 0 330 unless $el
518 0 2 unless $node
533 0 512 if (grep {$ev eq $_;} $self->SKIP)
537 0 512 if (%REPLACE)
553 0 512 unless (ref $topnode)
556 3 509 if (scalar @$topnode < 2)
572 126 386 if ($trap_h)
580 19 107 if (defined $$trap_h{$trapped_ev})
581 18 1 if ($$trap_h{$trapped_ev}) { }
594 0 512 if ($self->can($m)) { }
0 512 elsif ($self->can('catch_end')) { }
0 512 elsif ($$self{'_catch_end_sub'}) { }
607 494 18 if (@$node)
609 184 310 unless ($$el[1])
613 0 494 if (scalar @R and not $R[0])
620 16 496 unless (@$stack)
622 0 16 if ($self->can('end_stag'))
645 306 619 if (ref $st) { }
646 0 306 if (ref $st ne 'ARRAY')
648 0 884 unless ref $_
677 1 36 unless ($$self{'sax_stack'})
682 36 1 if (@{$$self{'is_nonterminal_stack'};} > 1)
689 0 37 if (defined $str)
693 0 0 if ($str)
694 0 0 if $str
700 0 37 if ($atts and %$atts)
715 24 0 if (defined $char)
716 24 0 unless defined $$self{'__str'}
728 24 13 if (defined $str)
731 24 0 if ($str or $str eq '0')
732 0 24 if ($is_nt) { }