Condition Coverage

blib/lib/HTML/FormFu/Util.pm
Criterion Covered Total %
condition 63 102 61.7


and 3 conditions

line !l l&&!r l&&r condition
139 0 0 303 $_->can($name) and defined($value = $_->$name)
158 0 164 5363 $_->can($name) and defined($value = $_->$name)
173 126 0 19 exists $attrs->{$key} and defined $attrs->{$key}
176 15 0 4 &blessed($attrs->{$key}) and $attrs->{$key}->isa('HTML::FormFu::Literal')
184 16 0 3 &blessed($value) and $value->isa('HTML::FormFu::Literal')
232 0 0 17 exists $attrs->{$key} and defined $attrs->{$key}
235 9 0 8 &blessed($attrs->{$key}) and $attrs->{$key}->isa('HTML::FormFu::Literal')
243 9 0 8 &blessed($value) and $value->isa('HTML::FormFu::Literal')
303 1 0 17 exists $attrs->{$key} and defined $attrs->{$key}
306 4 0 13 &blessed($attrs->{$key}) and $attrs->{$key}->isa('HTML::FormFu::Literal')
314 9 0 8 &blessed($value) and $value->isa('HTML::FormFu::Literal')
515 481 34 143 defined $righthash and keys %$righthash
526 0 2 21 exists $lefthash->{$key} && ref $lefthash->{$key} eq 'HASH'
528 2 20 1 ref $left_value eq 'HASH' and ref $right_value eq 'ARRAY'
22 0 0 ref $left_value eq 'ARRAY' and ref $right_value eq 'HASH'
22 0 0 ref $left_value eq 'ARRAY' and ref $right_value eq 'ARRAY'
2 0 20 ref $left_value eq 'HASH' and ref $right_value eq 'HASH'

or 3 conditions

line l !l&&r !l&&!r condition
51 0 0 4824 DEBUG() or $ENV{'HTML_FORMFU_DEBUG_PROCESS'}
58 0 0 2709 DEBUG() or &DEBUG_PROCESS()
0 0 2709 DEBUG() or &DEBUG_PROCESS() or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS'}
66 0 0 168 DEBUG() or &DEBUG_PROCESS()
0 0 168 DEBUG() or &DEBUG_PROCESS() or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS'}
0 0 168 DEBUG() or &DEBUG_PROCESS() or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS'} or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS_WHEN'}
74 0 0 659 DEBUG() or &DEBUG_PROCESS()
0 0 659 DEBUG() or &DEBUG_PROCESS() or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS'}
0 0 659 DEBUG() or &DEBUG_PROCESS() or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS'} or $ENV{'HTML_FORMFU_DEBUG_CONSTRAINTS_OTHERS'}
262 2 1 1 $x =~ /^\Q$y\E ?/ || $x =~ / \Q$y\E / || $x =~ / ?\Q$y\E$/
270 2 1 1 $x =~ /^\Q$y\E ?/ || $x =~ / \Q$y\E / || $x =~ / ?\Q$y\E$/
279 3 1 1 $x =~ /^\Q$y\E ?/ || $x =~ / \Q$y\E / || $x =~ / ?\Q$y\E$/
287 2 1 1 $x =~ /^\Q$y\E ?/ || $x =~ / \Q$y\E / || $x =~ / ?\Q$y\E$/
332 4 1 1 $x =~ s/^\Q$y\E ?// or $x =~ s/ \Q$y\E / /
340 3 2 2 $x =~ s/^\Q$y\E ?// or $x =~ s/ \Q$y\E / /
349 1 1 1 $x =~ s/^\Q$y\E ?// or $x =~ s/ \Q$y\E / /
357 1 0 0 $x =~ s/^\Q$y\E ?// or $x =~ s/ \Q$y\E / /