GeoIP2/Role/Record/Country.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 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 6 $GeoIP2::Role::Record::Country::VERSION = '0.050000';
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use GeoIP2::Types qw( NonNegativeInt PositiveInt Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 with 'GeoIP2::Role::Record::HasNames';
11  
12 6 has iso_code => (
13 is => 'ro',
14 isa => Str,
15 predicate => 'has_iso_code',
16 );
17  
18 6 has geoname_id => (
19 is => 'ro',
20 isa => PositiveInt,
21 predicate => 'has_geoname_id',
22 );
23  
24 6 has confidence => (
25 is => 'ro',
26 isa => NonNegativeInt,
27 predicate => 'has_confidence',
28 );
29  
30 6 1;
« GeoIP2/Role/Model/Flat.pm ↑ Summary