Branch Coverage

blib/lib/Rose/HTML/Form/Field/Group.pm
Criterion Covered Total %
branch 84 122 68.8


line true false branch
59 0 8 if @_ > 1
60 4 4 wantarray ? :
69 82 2637 if (@_)
76 0 2393 unless $self->{'items'}
2393 326 wantarray ? :
81 0 219 unless my $items = (shift())->items
82 214 5 wantarray ? :
109 4 14 unless my $delete_item = $self->item($value)
118 2 45 if ($item->isa($group_class))
120 2 0 if (my $deleted = $item->delete_item($value))
126 12 33 if $item eq $delete_item
142 0 0 if (@_)
145 0 0 $offset < 0 ? :
149 0 0 if @items
161 0 0 @_ ? :
162 0 0 if @items
194 0 2 UNIVERSAL::isa($value, $group_class) ? :
202 2 2 if $item eq $delete_item
204 0 2 if ($item->isa($group_class))
206 0 0 if (my $deleted = $item->delete_item($value))
232 0 0 if (@_)
238 0 0 wantarray ? :
245 8 8 if (@_)
287 0 98 $options->{'localized'} ? :
289 17 81 if (@_ == 1 and ref $_[0] eq 'HASH') { }
300 52 29 if (@_ == 1 and ref $_[0] eq 'ARRAY') { }
304 44 8 unless (grep {ref $_;} @$args)
315 17 197 if (UNIVERSAL::isa($arg, $class) or UNIVERSAL::isa($arg, $group_class)) { }
197 0 elsif (not ref $arg) { }
323 181 16 if (not ref $args->[0]) { }
13 3 elsif (ref $args->[0] eq 'HASH') { }
3 0 elsif (ref $args->[0] eq 'ARRAY') { }
360 17 81 if (keys %labels)
376 249 0 if $item->can("parent_group")
402 11 87 wantarray ? :
409 21 6399 if (@_)
411 21 0 if (my $parent = $self->SUPER::parent_field(@_))
415 63 0 unless $item->parent_field
476 79 12 unless %$labels or %$label_ids
482 0 34 unless defined $value
484 10 24 if (exists $label_ids->{$value}) { }
15 9 elsif (exists $labels->{$value}) { }
571 4 9 $localized ? :
573 9 4 if (@_)
577 8 1 if (@_ == 1 and ref $_[0] eq 'HASH') { }
583 0 1 unless @_ % 2 == 0
594 9 4 unless defined $want
603 0 12 if ($item->isa($group_class)) { }
616 4 0 $want ? :
672 39 2 $self->linebreak ? :
681 25 0 $self->linebreak ? :
691 10 6 if (@_)
714 18 48 if defined $item->internal_value
717 12 0 wantarray ? :
728 0 8 unless ref $items and @$items
739 2 6 if ($total % ($rows * $cols))
753 2 8 if $end > $#$items
759 2 6 $xhtml ? :
8 0 $self->linebreak ? :
763 0 8 ref $args{'tr'} eq 'ARRAY' ? :
764 0 8 ref $args{'td'} eq 'ARRAY' ? :