lib/Wcpancover/Author.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::Author;
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 "front/index.html.ep"
9 $self->render();
10 }
11  
12 sub query {
13 my $self = shift;
14 my $author = $self->param('author');
15  
16 $self->redirect_to("/author/$author");
17 }
18  
19 sub show {
20 my $self = shift;
21  
22 # Render $page
23 $self->render_not_found
24 unless $self->render();
25 }
26  
27 1;