blib/lib/Number/Phone/StubCountry/BL.pm

filter: Statementstmt 100% 25 / 25 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 97.1% 34 / 35 CC 3 SCAR 6.2
CC
3
Cov
97%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Number/Phone/UK/Data.pm ↑ Summary blib/lib/Number/Phone/StubCountry/BO.pm »
1 # automatically generated file, don't edit
2  
3  
4  
5 # Copyright 2026 David Cantrell, derived from data from libphonenumber
6 # http://code.google.com/p/libphonenumber/
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 package Number::Phone::StubCountry::BL;
20 3 ▶use base qw(Number::Phone::StubCountry);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 3 our $VERSION = 1.20260904101547;
26  
27 3 my $formatters = [];
28  
29 3 my $validators = {
30 'fixed_line' => '
31 (?:
32 59(?:
33 0(?:
34 2[7-9]|
35 3[3-7]|
36 5[12]|
37 87
38 )|
39 87\\d
40 )|
41 80[6-9]\\d\\d
42 )\\d{4}
43 ',
44 'geographic' => '
45 (?:
46 59(?:
47 0(?:
48 2[7-9]|
49 3[3-7]|
50 5[12]|
51 87
52 )|
53 87\\d
54 )|
55 80[6-9]\\d\\d
56 )\\d{4}
57 ',
58 'mobile' => '
59 (?:
60 69(?:
61 0\\d\\d|
62 1(?:
63 2[2-9]|
64 3[0-5]
65 )
66 )|
67 7090[0-4]
68 )\\d{4}
69 ',
70 'pager' => '',
71 'personal_number' => '',
72 'specialrate' => '(8[129]\\d{7})',
73 'toll_free' => '80[0-5]\\d{6}',
74 'voip' => '
75 9(?:
76 (?:
77 39[5-7]|
78 76[018]
79 )\\d|
80 475[0-6]
81 )\\d{4}
82 '
83 };
84 3 my $timezones = {
85 '' => [
86 'America/Guadeloupe'
87 ]
88 };
89  
90 20 ▶ sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
91 20 my $class = shift;
92 20 my $number = shift;
93 20 $number =~ s/(^\+590|\D)//g;
94 20 my $self = bless({ country_code => '590', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, }, $class);
95 20 ▶ return $self if ($self->is_valid());
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_valid 18 2 20
96 2 $number =~ s/^(?:0)//;
97 2 $self = bless({ country_code => '590', number => $number, formatters => $formatters, validators => $validators, }, $class);
98 2 ▶ return $self->is_valid() ? $self : undef;
Branch: 1 branch
BranchTrueFalseTotal
$self->is_valid ? : 0 2 2
99 }
100 3 1;
« blib/lib/Number/Phone/UK/Data.pm ↑ Summary blib/lib/Number/Phone/StubCountry/BO.pm »