Branch Coverage

blib/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm
Criterion Covered Total %
branch 6 54 11.1


line true false branch
19 0 0 unless defined $config->{'user_model'}
33 0 0 unless $self->{'resultset'}
36 0 0 unless exists $self->config->{'id_field'}
39 0 0 unless ref $self->config->{'id_field'} eq 'ARRAY'
45 0 0 unless &all(sub { $self->{'resultset'}->result_source->has_column($_); } , @{$self->config->{'id_field'};})
69 0 0 if (exists $authinfo->{'dbix_class'})
77 0 0 if ($dbix_class_config and exists $authinfo->{'result'}) { }
0 0 elsif ($dbix_class_config and exists $authinfo->{'resultset'}) { }
0 0 elsif ($dbix_class_config and exists $authinfo->{'searchargs'}) { }
90 0 0 if ($self->resultset->result_source->has_column($key))
94 0 0 if (keys %{$searchargs;}) { }
106 0 0 if ($self->get_object) { }
129 0 0 if (ref $self->_roles eq 'ARRAY')
134 0 0 if (exists $self->config->{'role_column'}) { }
0 0 elsif (exists $self->config->{'role_relation'}) { }
136 0 0 if ($role_data)
142 0 0 if ($self->_user->$relation->result_source->has_column($self->config->{'role_field'})) { }
170 0 0 if (exists $self->config->{'use_userdata_from_session'} and $self->config->{'use_userdata_from_session'} != 0) { }
191 0 0 if (exists $self->config->{'use_userdata_from_session'} and $self->config->{'use_userdata_from_session'} != 0)
208 0 0 if (ref $frozenuser eq 'HASH')
221 0 0 if (my $code = $self->_user->can($field)) { }
0 0 elsif (my $accessor = &try(sub { $self->_user->result_source->column_info($field)->{'accessor'}; } )) { }
236 0 0 if ($force)
282 0 3 if $method eq 'DESTROY'
284 1 2 unless ref $self
286 1 1 if (my $code = $self->_user->can($method)) { }
0 1 elsif (my $accessor = &try(sub { $self->_user->result_source->column_info($method)->{'accessor'}; } )) { }