Branch Coverage

blib/lib/POE/XUL/ChangeManager.pm
Criterion Covered Total %
branch 54 168 32.1


line true false branch
57 0 0 if $_[0]
91 0 0 if ($@)
127 0 0 unless defined $N and &blessed($N) and $N->can('dispose')
152 34 7 if (@more)
156 0 41 unless $self->{'other_windows'}
169 0 173 unless $node and &blessed($node)
171 0 173 unless $state and &blessed($state)
175 173 0 unless ($state->{'is_framify'})
187 386 42 if $self->{'states'}{"$node"}
213 0 5 if ($self->{'window'}) { }
221 0 5 if ($server)
230 0 0 if ($node == $self->{'window'})
235 0 0 unless $self->{'other_windows'}
236 0 0 if $win == $node
249 0 43 unless $id
250 0 43 if ($self->{'nodes'}{$id} and not $self->{'nodes'}{$id}{'disposed'})
253 0 43 unless $node
267 8 7 if (($self->{'nodes'}{$id} || '') ne $node)
293 28 0 if $node->getAttribute('id')
307 3 14 if ($state) { }
8 6 elsif ($node->can('id')) { }
310 0 3 if $state->{'style'}
315 6 11 unless $id
323 0 63 if $self->{'ignorechanges'}
326 27 36 if ($key eq 'tag') { }
1 35 elsif ($key eq 'id') { }
0 35 elsif ($key eq 'src' or $key eq 'href' or $key eq 'datasources') { }
328 5 22 if $node->is_window
348 0 1 if $state->{'id'} eq $value
366 0 0 if (&blessed($value)) { }
0 0 elsif (ref $value) { }
0 0 elsif (not $value =~ m[^(((ftp|file|data|https?):)|/)]) { }
367 0 0 unless ($value->can('mime_type') and $value->can('as_string') || $value->can('as_xml'))
377 0 0 if ('ARRAY' eq ref $value)
378 0 0 if (2 == @$value and 'HASH' eq ref $value->[-1])
383 0 0 if (1 == @$value)
391 0 0 if (30000 < length $value or not $node->getAttribute('content-type')) { }
432 0 2 if $self->{'ignorechanges'}
436 0 0 if $key eq 'style' and $state->{'style'}
444 0 1 if $self->{'ignorechanges'}
458 2 1 if $state->{'style'}
483 0 57 if (defined $child_state->{'trueindex'}) { }
490 30 27 unless $child->{'children'}
39 18 unless @{[] unless $child->{'children'};}
514 0 3 unless defined $index
521 0 3 if $child_state->{'style'}
550 0 0 if $event
561 0 0 if ($self->{'current_event'}) { }
594 0 0 if ($self->{'responded'})
599 0 0 unless $resp
602 0 0 if (not ref $out) { }
740 0 0 unless $radio
745 0 0 if ($C == $radio) { }
0 0 elsif ($C->selected) { }
770 0 0 if ($menulist->tagName eq 'tree')
776 0 0 unless defined $I and $I ne 'undefined'
782 0 0 if (defined $I and $I == -1) { }
0 0 elsif ($menulist->editable and $oI and $oI == -1) { }
797 0 0 if ($item)
813 0 0 unless $list
814 0 0 unless $list->first_child
815 0 0 unless defined $I
818 0 0 unless $item
821 0 0 if ($value) { }
848 0 0 if (&blessed($cb)) { }
0 0 elsif (ref $cb) { }
853 0 0 if ($cb->can('as_xml')) { }
861 0 0 if ('CODE' eq ref $cb) { }
890 0 0 if ($event->primary_col)
895 0 0 if (&blessed($rdf) and $rdf->can('index_of'))
909 0 0 unless $node->tagName eq 'treechildren'
914 0 0 unless ($treechildren)
927 0 0 if ($first and $first->tagName eq 'treerow') { }
939 0 0 if ($r == $rowN) { }
0 0 elsif ($prop =~ s/\s*selected\s*//g) { }
941 0 0 if ($prop) { }
975 0 1 unless @$out
993 0 4 unless 'HASH' eq ref $features
1012 4 5 if (ref $inst) { }
1019 1 8 if ($op eq 'flush') { }
2 6 elsif ($op eq 'empty') { }
2 4 elsif ($op eq 'timeslice') { }
4 0 elsif ($op eq 'popup_window') { }
0 0 elsif ($op eq 'close_window') { }