Branch Coverage

blib/lib/Interchange6/Schema/Result/User.pm
Criterion Covered Total %
branch 34 36 97.2


line true false branch
52 3 6 if (@_)
400 1 14 if (exists $args{'duration'} and not defined $args{'duration'}) { }
410 3 11 if ($args{'duration'}) { }
413 1 2 unless ref $args{'duration'} eq 'HASH'
429 1 13 if $args{'entropy'} and not $args{'entropy'} =~ /^\d+$/
432 12 1 unless $args{'entropy'}
459 24 0 if $self->password
461 20 4 if $self->reset_expires
477 2 14 unless $checksum
486 13 1 if ($self->reset_token eq $token)
487 11 2 if (not $self->reset_expires or 'DateTime'->now <= $self->reset_expires)
488 8 3 if ($self->reset_token_checksum eq $checksum)
509 1 52 if (defined $attrs->{'is_anonymous'} and not defined $attrs->{'username'}) { }
536 2 47 $self->is_anonymous ? :
542 49 0 if ($user_role) { }
569 1 21 if (exists $upd->{'username'})
584 3 53 unless defined $value
586 2 51 if $value eq ''