Condition Coverage

lib/HTML/Object/DOM/Element/Input.pm
Criterion Covered Total %
condition 68 135 50.3


and 2 conditions

line l !l condition
467 0 0 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
473 0 0 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL

and 3 conditions

line !l l&&!r l&&r condition
173 24 0 11 defined $incr and length "$incr"
208 0 0 35 defined $step && length "$step"
254 10 0 25 defined $val and length "$val"
258 6 0 4 $dir eq "up" and defined $min
6 0 4 $dir eq "up" and defined $min and length "$min"
0 0 6 $dir eq "down" and defined $max
0 0 6 $dir eq "down" and defined $max and length "$max"
296 25 0 0 $INC{'threads.pm'} and not exists $INC{'forks.pm'}
304 0 0 5 defined $max and length "$max"
0 3 2 defined $max and length "$max" and $dir eq "up"
3 1 1 defined $max and length "$max" and $dir eq "up" and $new > $max
0 0 4 defined $min and length "$min"
0 1 3 defined $min and length "$min" and $dir eq "down"
1 2 1 defined $min and length "$min" and $dir eq "down" and $new < $min
339 2 2 1 $dir eq "down" and defined $min
4 0 1 $dir eq "down" and defined $min and length "$min"
2 0 2 $dir eq "up" and defined $max
2 2 0 $dir eq "up" and defined $max and length "$max"
425 6 6 3 $dir eq "down" and defined $min
12 0 3 $dir eq "down" and defined $min and length "$min"
6 0 6 $dir eq "up" and defined $max
6 3 3 $dir eq "up" and defined $max and length "$max"
467 25 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
473 0 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
0 0 25 defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
25 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__NEXT__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__LAST__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__REDO__"
0 0 0 defined $Nice::Try::BREAK and $Nice::Try::BREAK eq "return"
0 0 0 scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')

or 2 conditions

line l !l condition
182 35 0 $opts->{'direction'} // "down"
197 35 0 $self->attr('type') || (return $self->error({'message', 'This input type has no type attribute.', 'class', 'HTML::Object::SyntaxError'}))
201 35 0 $type2unit->{$type} || (return $self->error({'message', qq[This input type "$type" is unsupported for ] . ($dir eq 'up' ? 'stepUp' : 'stepDown'), 'class', 'HTML::Object::InvalidStateError'}))
253 23 12 $max //= ""

or 3 conditions

line l !l&&r !l&&!r condition
208 0 0 35 not defined $step && length "$step" or lc "$step" eq "any"
0 0 35 not defined $step && length "$step" or lc "$step" eq "any" or not "$step" =~ /$def->{'step_re'}/
218 2 1 28 $type eq "week" or $type eq "number"
3 0 28 $type eq "week" or $type eq "number" or $type eq "range"
299 5 0 20 $type eq "number" or $type eq "range"
304 1 1 3 defined $max and length "$max" and $dir eq "up" and $new > $max or defined $min and length "$min" and $dir eq "down" and $new < $min
473 20 5 0 defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return'
5 20 0 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 25 0 not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return"
0 0 0 !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')