Branch Coverage

blib/lib/CGI/FormBuilderX/More.pm
Criterion Covered Total %
branch 50 78 64.1


line true false branch
115 0 3 if (@_ == 1 and ref $_[0] eq 'HASH') { }
3 0 elsif (@_ > 1) { }
123 3 0 if ($hash) { }
125 1 2 if ($$hash{'validate'} and ref $$hash{'validate'} eq 'CODE')
164 0 3 if (not @_) { }
170 3 0 if (defined $name and length $name) { }
171 0 3 unless $name =~ /^_submit/i or $name =~ s/^\+//
179 2 3 if (defined(my $value = $self->input_fetch($_)))
184 0 1 if $default
211 4 5 if $value
212 5 0 unless defined $value
213 0 0 if $value eq ''
229 0 2 if wantarray and 1 == @_ and not ref $_[0]
232 1 2 if ref $_[0] and ref $_[0] eq 'HASH'
234 1 2 if exists $$control{'all'}
236 0 5 ref $_ eq 'ARRAY' ? :
239 1 2 if ($all) { }
242 1 1 1 == @param ? :
250 2 1 wantarray ? :
266 0 2 if ref $_[0] and ref $_[0] eq 'HASH'
268 0 2 if exists $$control{'all'}
270 0 4 ref $_ eq 'ARRAY' ? :
273 0 2 if ($all) { }
274 0 0 1 == @param ? :
280 1 1 wantarray ? :
313 7 27 wantarray ? :
358 3 0 if ($_[0] and ref $_[0] eq 'CODE') { }
0 0 elsif ($code = $$self{_attribute('validate')}) { }
370 0 0 @errors ? :
0 2 unless @_
379 0 3 if $error
382 2 1 scalar @errors ? :
424 3 28 if (exists $$self{_attribute('input')}{$key}) { }
426 1 2 wantarray ? :
445 1 2 1 == @_ && ref $_[0] eq 'ARRAY' ? :
458 0 6 if (@_)
459 0 0 1 == @_ && ref $_[0] eq 'ARRAY' ? :
464 1 5 wantarray ? :
482 1 2 wantarray ? :