Condition Coverage

blib/lib/Rubric/WebApp.pm
Criterion Covered Total %
condition 29 91 31.8


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')
649 0 0 0 $$prefs{'email'} and not $$prefs{'email'} =~ /$Email::Address::addr_spec/
656 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'}
720 1 0 0 $$newuser{'username'} and not $$newuser{'username'} =~ /^[\pL\d_.]+$/
728 0 0 0 $$newuser{'email'} and not $$newuser{'email'} =~ /$Email::Address::addr_spec/
735 1 0 0 $$newuser{'password_1'} and $$newuser{'password_2'}
1 0 0 $$newuser{'password_1'} and $$newuser{'password_2'} and $$newuser{'password_1'} ne $$newuser{'password_2'}
826 0 0 0 defined $user and $user eq ''
882 0 0 0 defined $self->param('user') and $self->param('user') eq ''
1009 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;})
1022 2 0 0 $self->query->param('submit') and not length $form{'title'}
1025 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 ||= {}
868 0 0 'Rubric::User'->retrieve($self->next_path_part) || ''
938 30 0 $options ||= {}
946 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
529 0 0 0 $self->get_user || $self->query->param('user') && 'Rubric::User'->retrieve($self->query->param('user'))
1047 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)
1060 0 0 0 $goto ||= 'Rubric::WebApp::URI'->entries({'user', $self->param('current_user')})
1109 1 0 0 $self->query->param('then_goto') || 'Rubric::WebApp::URI'->entries({'username', $user})