lib/Wcpancover/Dist.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 19 CC 2 SCAR 12.8
CC
2
Cov
0%
show
6.0
index
2.0
query
2.0
CRAP 3.6
1 package Wcpancover::Dist;
2 use Mojo::Base 'Mojolicious::Controller';
3  
4 # This action will render a template
5 sub index {
6 my $self = shift;
7  
8 # Render template "dist/index.html.ep"
9 $self->render();
10 }
11  
12  
13 sub query {
14 my $self = shift;
15 my $dist = $self->param('dist');
16  
17 $self->redirect_to("/dist/$dist");
18 }
19  
20  
21 sub show {
22 my $self = shift;
23  
24 # Render $page
25 $self->render_not_found
26 unless $self->render();
27 }
28  
29 1;