Faker/Plugin/Telephone.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Faker::Plugin::Telephone;
2  
3 use 5.014;
4  
5 use strict;
6 use warnings;
7  
8 use registry;
9 use routines;
10  
11 use Data::Object::Class;
12 use Data::Object::ClassHas;
13  
14 extends 'Data::Object::Plugin';
15  
16 our $VERSION = '1.03'; # VERSION
17  
18 # ATTRIBUTES
19  
20 has 'faker' => (
21 is => 'ro',
22 isa => 'ConsumerOf["Faker::Maker"]',
23 req => 1,
24 );
25  
26 # METHODS
27  
28 method format_for_number() {
29 [
30 '###-###-####',
31 '###-###-####',
32 '### ### ####',
33 '### ### ####',
34 '### ### ####',
35 '### ### ####',
36 '(###) ###-####',
37 '(###) ###-####',
38 '(###) ###-####',
39 '(###) ###-####',
40 '+##(#)##########',
41 '+##(#)##########',
42 '0##########',
43 '0##########',
44 '###-###-####',
45 '(###) ### ####',
46 '1-###-###-####',
47 '###.###.####',
48 '###-###-####',
49 '### ### ####',
50 '##########',
51 '(###) ###-####',
52 '1-###-###-####',
53 '###.###.####',
54 '###-###-####x###',
55 '(###)###-####x###',
56 '1-###-###-####x###',
57 '###.###.####x###',
58 '###-###-#### x####',
59 '(###)###-####x####',
60 '1-###-###-####x####',
61 '###.###.####x####',
62 '###-###-####x#####',
63 '(###)###-####x#####',
64 '1-###-###-####x#####',
65 '###.###.#### x#####'
66 ]
67 }
68  
69 1;