Branch Coverage

blib/lib/Catalyst/Model/HTMLFormhandler.pm
Criterion Covered Total %
branch 33 84 39.2


line true false branch
61 0 2 unless $self->roles
2 0 if $self->has_roles
63 0 2 $self->has_schema_model_name ? :
173 0 2 unless eval $package
0 0 if (ref $item_proto eq 'HASH') { }
0 0 elsif (ref $item_proto) { }
0 0 if (scalar(@args) % 2) { }
0 0 ref $action eq 'ARRAY' ? :
0 0 ref $action ? :
0 0 if (my $action = delete $args{'action_from'})
0 0 if keys %args
0 0 if (my $form = $c->stash->{$id})
0 0 unless $action->attributes
0 0 scalar @parts ? :
0 0 if ref($self) =~ /$attr$/
0 0 unless ($args{'action'})
0 0 if $set
0 0 unless exists $args{'params'}
0 0 unless $args{'posts'}
0 0 if ($c->req->method =~ /post/i)
0 0 exists $args{'no_auto_process'} ? :
0 0 if $c->req->method =~ /post/i and not $no_auto_process
1 1 $form->is_valid ? :
0 0 $form->is_valid ? :
3 1 if (ref $item_proto eq 'HASH') { }
1 0 elsif (ref $item_proto) { }
4 4 if (scalar(@args) % 2) { }
0 1 ref $action eq 'ARRAY' ? :
1 0 ref $action ? :
1 7 if (my $action = delete $args{'action_from'})
3 3 if keys %args
6 2 if (my $form = $c->stash->{$id})
0 7 unless $action->attributes
0 1 scalar @parts ? :
1 0 if ref($self) =~ /$attr$/
1 1 unless ($args{'action'})
1 1 if $set
1 0 unless exists $args{'params'}
1 0 unless $args{'posts'}
1 1 if ($c->req->method =~ /post/i)
0 2 exists $args{'no_auto_process'} ? :
1 1 if $c->req->method =~ /post/i and not $no_auto_process