lib/Wcpancover/Front.pm

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 2 totaltotal 81.2% 13 / 16 CC 2 SCAR 4.2
CC
2
Cov
91%
page
2.0
BEGIN
1.0
index
1.0
CRAP 1.5
« lib/Wcpancover/Command/config.pm ↑ Summary lib/Wcpancover/DB/Schema.pm »
1 package Wcpancover::Front;
2 2 ▶use Mojo::Base 'Mojolicious::Controller';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # This action will render a template
5 1 ▶sub index {
Subroutine index: called CC=1 SCAR=0.0
Pod undocumented
6 1 my $self = shift;
7  
8 # Render template "front/index.html.ep"
9 1 $self->render();
10 }
11  
12 1 ▶sub page {
Subroutine page: called CC=2 SCAR=7.1
Pod undocumented
13 1 my $self = shift;
14  
15 1 my $name = $self->param('name');
16  
17 # Render $page
18 1 ▶ $self->render_not_found
Branch: 1 branch
BranchTrueFalseTotal
unless $self->render("template", "front/$name") 0 1 1
19 unless $self->render(template => "front/$name");
20 }
21  
22 2 1;
« lib/Wcpancover/Command/config.pm ↑ Summary lib/Wcpancover/DB/Schema.pm »