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