Branch Coverage

blib/lib/Rose/HTML/Form/Field/Group/OnOff.pm
Criterion Covered Total %
branch 74 86 86.0


line true false branch
34 52 3195 if (@_)
52 744 2503 unless (length $name)
64 73 0 if (@_)
66 0 73 if (@_ == 1 and ref $_[0] eq 'ARRAY') { }
70 3 elsif (defined $_[0]) { }
82 0 73 wantarray ? :
89 0 178 wantarray ? :
104 5 32 wantarray ? :
116 6 162 if ($item->isa($group_class)) { }
120 4 8 if $subitem->html_attr("value") eq $value
125 62 100 if $item->html_attr("value") eq $value
141 3 9 if $item->isa($group_class) and $item->label eq $label
154 8 44 if ($item->html_attr("value") eq $value and $item->internal_value)
171 5 8 if $item->is_on
192 119 13 if (@_) { }
197 0 119 if (@_ == 1 and ref $_[0] eq 'ARRAY') { }
94 25 elsif (@_ and defined $_[0]) { }
206 94 25 if (%values) { }
217 25 94 if (my $parent = $self->parent_field)
219 15 10 if ($parent->_is_full)
224 8 17 if ($self->auto_invalidate_parent)
232 12 1 if (keys %{$$self{"values"};})
238 4 52 if ($item->isa($group_class)) { }
247 16 36 if ($item->is_on)
256 3 129 wantarray ? :
267 0 2 unless defined $value
271 0 2 wantarray ? :
278 2 3 unless (@_)
288 3 0 if ($item->html_attr("value") eq $value)
290 0 3 if @_
291 3 0 $item->label ? :
315 6 2368 if ($item->isa($group_class)) { }
317 6 0 if defined $item->internal_value
321 328 2040 if $item->is_on
327 727 31 wantarray ? :
332 0 678 wantarray ? :
340 8 20 if $value eq $find_value
352 107 571 if (%$values) { }
178 393 elsif (not $self->is_cleared) { }
360 4 397 if ($item->isa($group_class)) { }
364 3 5 if (exists $$values{$subitem->html_attr('value')}) { }
376 126 271 if (exists $$values{$item->html_attr('value')}) { }
395 81 417 if (defined $value and exists $defaults->{$value}) { }