Documentation/Route.pm

filter: Statementstmt 100% 22 / 22 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 96.9% 32 / 33 CC 3 SCAR 3.9
CC
3
Cov
96%
__ANON__
2.1
__ANON__
2.0
BEGIN
1.0
CRAP 1.5
« Documentation.pm ↑ Summary Documentation/Section.pm »
1 package Dancer::Plugin::Documentation::Route;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use MooX::Types::MooseLike::Base qw{Str};
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 extends 'Dancer::Plugin::Documentation::Base';
11  
12 has method => (
13 is => 'ro',
14 isa => Str,
15 59 ▶ coerce => sub { defined $_[0] ? lc $_[0] : undef },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
defined $_[0] ? : 57 2 59
16 3 default => undef,
17 );
18  
19 3 has path => (
20 is => 'ro',
21 isa => Str,
22 default => undef,
23 );
24  
25 has section => (
26 is => 'ro',
27 isa => Str,
28 55 ▶ coerce => sub { defined $_[0] ? lc $_[0] : '' },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
defined $_[0] ? : 55 0 55
29 3 default => '',
30 );
31  
32 3 1;
« Documentation.pm ↑ Summary Documentation/Section.pm »