GeoIP2/Role/HasLocales.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Role/HasIPAddress.pm ↑ Summary GeoIP2/Role/Model.pm »
1 package GeoIP2::Role::HasLocales;
2  
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 our $VERSION = '2.006002';
7  
8 12 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 12 ▶use GeoIP2::Types qw( LocalesArrayRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 12 ▶use Sub::Quote qw( quote_sub );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 12 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 12 has locales => (
16 is => 'ro',
17 isa => LocalesArrayRef,
18 default => quote_sub(q{ ['en'] }),
19 );
20  
21 12 1;
« GeoIP2/Role/HasIPAddress.pm ↑ Summary GeoIP2/Role/Model.pm »