Condition Coverage

blib/lib/Mojolicious/Plugin/StaticShare.pm
Criterion Covered Total %
condition 6 47 12.7


and 3 conditions

line !l l&&!r l&&r condition
51 0 0 1 require Mojolicious::Plugin::StaticShare::Templates and push @{$app->renderer->classes;}, grep(($_ eq $push_class), @{$app->renderer->classes;}) ? () : $push_class
0 1 0 require Mojolicious::Plugin::StaticShare::Templates and push @{$app->renderer->classes;}, grep(($_ eq $push_class), @{$app->renderer->classes;}) ? () : $push_class and push @{$app->static->paths;}, grep(($_ eq $push_path), @{$app->static->paths;}) ? () : $push_path
1 0 0 ($self->render_dir // '') eq 0 and ($self->render_markdown // '') eq 0
67 0 0 0 $self->routes->post($self->root_url->to_route)->to('namespace', $PKG, 'controller', 'Controller', 'action', 'post', 'pth', '', 'plugin', $self)->name($names->[2]) and $self->routes->post($route->to_route)->to('namespace', $PKG, 'controller', 'Controller', 'action', 'post', 'plugin', $self)->name($names->[3])
79 1 0 0 $self->app->renderer->helpers->{'pod_to_html'} and ($self->render_pod // '') eq 0
147 0 0 0 $c->param('admin') and $c->param('admin') eq $pass
149 0 0 0 $sess->{'StaticShare'} && $sess->{'StaticShare'}{'admin'}
195 0 0 0 $req->is_finished and not $self->{'handled'}++
212 0 0 0 $pkg->can('new') and $pkg->can('parse')

or 2 conditions

line l !l condition
51 0 1 $self->render_dir // ''
0 0 $self->render_markdown // ''
79 0 0 $self->render_pod // ''
168 0 0 $match->endpoint || (return)

or 3 conditions

line l !l&&r !l&&!r condition
72 1 0 0 not $self->config->{'root_dir'} or -e $self->config->{'root_dir'}
134 0 0 0 $loc{$_} || $loc{lc $_} || $loc{lc "$_-$_"}
137 0 0 0 $loc->{$str} || $$loc{lc $str} || $str
172 0 0 0 $route->name eq $self->routes_names->[2] or $route->name eq $self->routes_names->[3]