Reader.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Reader/Data/EndMarker.pm ↑ Summary Reader/Role/HasDecoder.pm »
1 package MaxMind::DB::Reader;
2  
3 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 21 our $VERSION = '1.000014';
7  
8 21 ▶use 5.010000;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 21 ▶use Module::Implementation;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 21 ▶use Moo 1.003000 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12 21 ▶use Role::Tiny 1.003002 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 21 my $Implementation;
15  
16 {
17 ## no critic (Subroutines::ProhibitCallsToUnexportedSubs)
18 21 my $loader = Module::Implementation::build_loader_sub(
19 implementations => [ 'XS', 'PP' ],
20 );
21  
22 21 $Implementation = $loader->();
23 }
24  
25 22 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
26 22 shift;
27 22 return $Implementation->new(@_);
28 }
29  
30 21 1;
31  
32 # ABSTRACT: Read MaxMind DB files and look up IP addresses
33  
34 __END__
« Reader/Data/EndMarker.pm ↑ Summary Reader/Role/HasDecoder.pm »