Condition Coverage

blib/lib/Rose/HTML/Object.pm
Criterion Covered Total %
condition 41 56 73.2


and 3 conditions

line !l l&&!r l&&r condition
294 0 811 1055 $children && @$children
311 462 1 1 $old_parent and &Scalar::Util::refaddr($old_parent) != &Scalar::Util::refaddr($new_parent)
532 1 0 1 @_ == 1 and ref $_[0] eq "HASH"
589 71 2 17 $error and length "$error"
918 1749 0 0 $self->html_attr_is_valid($name) and $class->autoload_html_attr_methods
1020 43 0 3 ref $_[0] && ref $_[0] eq 'HASH'
1081 2 1 135 $class->html_attr_is_valid($name) and $class->autoload_html_attr_methods

or 2 conditions

line l !l condition
403 4 2 $args{'args'} || []

or 3 conditions

line l !l&&r !l&&!r condition
402 6 0 0 $args{'msg_class'} || $self->localizer->message_class
474 73 27383 5 not $self->validate_html_attrs or $self->html_attr_is_valid($attr)
555 75 27383 0 not $self->validate_html_attrs or $self->html_attr_is_valid($attr)
667 3400 935 243 defined $value or exists $boolean_attrs{$attr}
719 1817 445 109 defined $value or exists $boolean_attrs{$attr}
754 863 7 494 $self->has_children or not $self->is_self_closing
770 190 6 304 $self->has_children or not $self->is_self_closing
901 0 1 0 ref $self_or_class || $self_or_class
913 5368 4483 0 ref $self || $self
935 0 0 0 ref $_[0] || $_[0]
1022 3 43 0 $options->{'target_class'} || (caller)[0]