Condition Coverage

blib/lib/Rubric/WebApp.pm
Criterion Covered Total %
condition 28 94 29.7


and 3 conditions

line !l l&&!r l&&r condition
196 40 0 2 $type and $type =~ /^[\pL\d_]+$/
282 2 0 0 grep {$_ eq "Rubric::Config"->private_tag;} $entry->tags and !$self->param('current_user') || $entry->user ne $self->param('current_user')
656 0 0 0 $prefs->{'email'} and not $prefs->{'email'} =~ /$Email::Address::addr_spec/
663 0 0 0 $prefs->{'password_1'} and $prefs->{'password_2'}
0 0 0 $prefs->{'password_1'} and $prefs->{'password_2'} and $prefs->{'password_1'} ne $prefs->{'password_2'}
672 0 0 0 do {
727 1 0 0 $newuser->{'username'} and not $newuser->{'username'} =~ /^[\pL\d_.]+$/
735 0 0 0 do {
742 1 0 0 $newuser->{'password_1'} and $newuser->{'password_2'}
0 0 0 $newuser->{'password_1'} and $newuser->{'password_2'} and $newuser->{'password_1'} ne $newuser->{'password_2'}
833 0 0 0 defined $user and $user eq ""
889 0 0 0 defined $self->param("user") and $self->param("user") eq ""
1016 1 0 1 $form{'uri'} and not $error{'uri'}
1 1 0 $form{'uri'} and not $error{'uri'} and defined "Rubric::Config"->allowed_schemes
1 0 0 $form{'uri'} and not $error{'uri'} and defined "Rubric::Config"->allowed_schemes and not grep({$_ eq $form{'uri'}->scheme;} @{"Rubric::Config"->allowed_schemes;})
1030 2 0 0 $self->query->param("submit") and not length $form{'title'}
1032 1 0 1 $form{'uri'} and "Rubric::Config"->one_entry_per_link

or 2 conditions

line l !l condition
169 0 48 $self->query->param('page') || 1
190 41 1 $stash ||= {}
875 0 0 'Rubric::User'->retrieve($self->next_path_part) || ''
945 30 0 $options ||= {}
957 8 22 $options->{'user'} || 'Rubric::EntryTag'

or 3 conditions

line l !l&&r !l&&!r condition
159 47 1 0 $self->query->param('per_page') || $self->session->param('per_page') || 'Rubric::Config'->default_page_size
220 17 31 0 $self->param("current_user") or not "Rubric::Config"->private_system
282 0 0 0 !$self->param('current_user') || $entry->user ne $self->param('current_user')
334 0 0 0 $self->query->param('uri') || $self->query->param('url')
383 0 0 1 $year or $month
487 0 2 0 $self->query->param('then_goto') || 'Rubric::Config'->uri_root
536 0 0 0 $self->get_user || $self->query->param('user') && 'Rubric::User'->retrieve($self->query->param('user'))
1054 2 0 0 not $self->query->param("submit") or %$error
2 0 0 not $self->query->param("submit") or %$error or not my $entry = $self->param("current_user")->quick_entry($form)
1067 0 0 0 $goto ||= "Rubric::WebApp::URI"->entries({"user", $self->param("current_user")})
1116 1 0 0 $self->query->param('then_goto') || 'Rubric::WebApp::URI'->entries({'username', $user})