Faker/Plugin/EsEs/InternetDomainTld.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Faker/Plugin/EsEs/CompanyNameSuffix.pm ↑ Summary Faker/Plugin/EsEs/InternetEmailDomain.pm »
1 package Faker::Plugin::EsEs::InternetDomainTld;
2  
3 4 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 base 'Faker::Plugin::EsEs';
11  
12 # VERSION
13  
14 4 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 10 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 10 my ($self, $data) = @_;
20  
21 10 return $self->faker->random->select(data_for_internet_domain_tld());
22 }
23  
24 10 ▶sub data_for_internet_domain_tld {
Subroutine data_for_internet_domain_tld: called CC=1 SCAR=0.0
Pod undocumented
25 10 state $internet_domain_tld = [
26 'com',
27 'com',
28 'com',
29 'com',
30 'net',
31 'org',
32 'org',
33 'es',
34 'es',
35 'es',
36 'com.es',
37 ]
38 }
39  
40 4 1;
41  
42  
43  
44 =head1 NAME
45  
46 Faker::Plugin::EsEs::InternetDomainTld - Internet Domain Tld
47  
48 =cut
49  
50 =head1 ABSTRACT
51  
52 Internet Domain Tld for Faker
53  
54 =cut
55  
56 =head1 VERSION
57  
58 1.19
59  
60 =cut
61  
62 =head1 SYNOPSIS
63  
64 package main;
65  
66 use Faker::Plugin::EsEs::InternetDomainTld;
67  
68 my $plugin = Faker::Plugin::EsEs::InternetDomainTld->new;
69  
70 # bless(..., "Faker::Plugin::EsEs::InternetDomainTld")
71  
72 =cut
73  
74 =head1 DESCRIPTION
75  
76 This package provides methods for generating fake data for internet domain tld.
77  
78 =encoding utf8
79  
80 =cut
81  
82 =head1 INHERITS
83  
84 This package inherits behaviors from:
85  
86 L<Faker::Plugin::EsEs>
87  
88 =cut
89  
90 =head1 METHODS
91  
92 This package provides the following methods:
93  
94 =cut
95  
96 =head2 execute
97  
98 execute(HashRef $data) (Str)
99  
100 The execute method returns a returns a random fake internet domain tld.
101  
102 I<Since C<1.10>>
103  
104 =over 4
105  
106 =item execute example 1
107  
108 package main;
109  
110 use Faker::Plugin::EsEs::InternetDomainTld;
111  
112 my $plugin = Faker::Plugin::EsEs::InternetDomainTld->new;
113  
114 # bless(..., "Faker::Plugin::EsEs::InternetDomainTld")
115  
116 # my $result = $plugin->execute;
117  
118 # 'com';
119  
120 # my $result = $plugin->execute;
121  
122 # 'net';
123  
124 # my $result = $plugin->execute;
125  
126 # 'es';
127  
128 =back
129  
130 =cut
131  
132 =head2 new
133  
134 new(HashRef $data) (Plugin)
135  
136 The new method returns a new instance of the class.
137  
138 I<Since C<1.10>>
139  
140 =over 4
141  
142 =item new example 1
143  
144 package main;
145  
146 use Faker::Plugin::EsEs::InternetDomainTld;
147  
148 my $plugin = Faker::Plugin::EsEs::InternetDomainTld->new;
149  
150 # bless(..., "Faker::Plugin::EsEs::InternetDomainTld")
151  
152 =back
153  
154 =cut
155  
156 =head1 AUTHORS
157  
158 Awncorp, C<awncorp@cpan.org>
159  
160 =cut
161  
162 =head1 LICENSE
163  
164 Copyright (C) 2000, Al Newkirk.
165  
166 This program is free software, you can redistribute it and/or modify it under
167 the terms of the Apache license version 2.0.
168  
169 =cut
« Faker/Plugin/EsEs/CompanyNameSuffix.pm ↑ Summary Faker/Plugin/EsEs/InternetEmailDomain.pm »