Branch Coverage

blib/lib/Plack/App/Register.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
31 0 0 if (defined $self->message_cb)
42 0 0 unless (defined $self->generator)
46 0 0 unless (defined $self->title)
67 0 0 if (defined $self->register_cb and $env->{'REQUEST_METHOD'} eq "POST")
72 0 0 if ($status) { }
73 0 0 if ($self->register_cb->($env, $body_params_hr->{'username'}, $body_params_hr->{'password1'})) { }
94 0 0 if (not exists $body_parameters_hr->{'register'} or $body_parameters_hr->{'register'} ne "register")
100 0 0 unless (defined $body_parameters_hr->{'username'} and $body_parameters_hr->{'username'})
104 0 0 unless (defined $body_parameters_hr->{'password1'} and $body_parameters_hr->{'password1'})
108 0 0 unless (defined $body_parameters_hr->{'password2'} and $body_parameters_hr->{'password2'})
112 0 0 if ($body_parameters_hr->{'password1'} ne $body_parameters_hr->{'password2'})
124 0 0 if (exists $env->{'psgix.session'})