GeoIP2/Role/Record/Country.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Role/Model/Flat.pm ↑ Summary
1 package GeoIP2::Role::Record::Country;
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(
Subroutine BEGIN: called CC=1 SCAR=0.0
11 Bool
12 BoolCoercion
13 NonNegativeInt
14 PositiveInt
15 Str
16 12 );
17 12 ▶use Sub::Quote qw( quote_sub );
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 12 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 12 with 'GeoIP2::Role::Record::HasNames';
22  
23 12 has is_in_european_union => (
24 is => 'ro',
25 isa => Bool,
26 default => quote_sub(q{ 0 }),
27 coerce => BoolCoercion,
28 );
29  
30 12 has iso_code => (
31 is => 'ro',
32 isa => Str,
33 predicate => 'has_iso_code',
34 );
35  
36 12 has geoname_id => (
37 is => 'ro',
38 isa => PositiveInt,
39 predicate => 'has_geoname_id',
40 );
41  
42 12 has confidence => (
43 is => 'ro',
44 isa => NonNegativeInt,
45 predicate => 'has_confidence',
46 );
47  
48 12 1;
« GeoIP2/Role/Model/Flat.pm ↑ Summary