Faker/Plugin/JaJp/PersonLastNameAscii.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/PersonLastName.pm ↑ Summary Faker/Plugin/JaJp/PersonName.pm »
1 package Faker::Plugin::JaJp::PersonLastNameAscii;
2  
3 6 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 base 'Faker::Plugin::JaJp';
11  
12 # VERSION
13  
14 6 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 17 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 17 my ($self, $data) = @_;
20  
21 17 return $self->faker->random->select(data_for_last_name_ascii());
22 }
23  
24 17 ▶sub data_for_last_name_ascii {
Subroutine data_for_last_name_ascii: called CC=1 SCAR=0.0
Pod undocumented
25 17 state $last_name_ascii = [
26 'aota',
27 'aoyama',
28 'ishida',
29 'idaka',
30 'ito',
31 'uno',
32 'ekoda',
33 'ogaki',
34 'kato',
35 'kanou',
36 'kijima',
37 'kimura',
38 'kiriyama',
39 'kudo',
40 'koizumi',
41 'kobayashi',
42 'kondo',
43 'saito',
44 'sakamoto',
45 'sasaki',
46 'sato',
47 'sasada',
48 'suzuki',
49 'sugiyama',
50 'takahashi',
51 'tanaka',
52 'tanabe',
53 'tsuda',
54 'nakajima',
55 'nakamura',
56 'nagisa',
57 'nakatsugawa',
58 'nishinosono',
59 'nomura',
60 'harada',
61 'hamada',
62 'hirokawa',
63 'fujimoto',
64 'matsumoto',
65 'miyake',
66 'miyazawa',
67 'murayama',
68 'yamagishi',
69 'yamaguchi',
70 'yamada',
71 'yamamoto',
72 'yoshida',
73 'yoshimoto',
74 'wakamatsu',
75 'watanabe',
76 ]
77 }
78  
79 6 1;
80  
81  
82  
83 =head1 NAME
84  
85 Faker::Plugin::JaJp::PersonLastNameAscii - Person Last Name Ascii
86  
87 =cut
88  
89 =head1 ABSTRACT
90  
91 Person Last Name Ascii for Faker
92  
93 =cut
94  
95 =head1 VERSION
96  
97 1.19
98  
99 =cut
100  
101 =head1 SYNOPSIS
102  
103 package main;
104  
105 use Faker::Plugin::JaJp::PersonLastNameAscii;
106  
107 my $plugin = Faker::Plugin::JaJp::PersonLastNameAscii->new;
108  
109 # bless(..., "Faker::Plugin::JaJp::PersonLastNameAscii")
110  
111 =cut
112  
113 =head1 DESCRIPTION
114  
115 This package provides methods for generating fake data for person last name ascii.
116  
117 =encoding utf8
118  
119 =cut
120  
121 =head1 INHERITS
122  
123 This package inherits behaviors from:
124  
125 L<Faker::Plugin::JaJp>
126  
127 =cut
128  
129 =head1 METHODS
130  
131 This package provides the following methods:
132  
133 =cut
134  
135 =head2 execute
136  
137 execute(HashRef $data) (Str)
138  
139 The execute method returns a returns a random fake person last name ascii.
140  
141 I<Since C<1.10>>
142  
143 =over 4
144  
145 =item execute example 1
146  
147 package main;
148  
149 use Faker::Plugin::JaJp::PersonLastNameAscii;
150  
151 my $plugin = Faker::Plugin::JaJp::PersonLastNameAscii->new;
152  
153 # bless(..., "Faker::Plugin::JaJp::PersonLastNameAscii")
154  
155 # my $result = $plugin->execute;
156  
157 # 'saito';
158  
159 # my $result = $plugin->execute;
160  
161 # 'sasada';
162  
163 # my $result = $plugin->execute;
164  
165 # 'yamagishi';
166  
167 =back
168  
169 =cut
170  
171 =head2 new
172  
173 new(HashRef $data) (Plugin)
174  
175 The new method returns a new instance of the class.
176  
177 I<Since C<1.10>>
178  
179 =over 4
180  
181 =item new example 1
182  
183 package main;
184  
185 use Faker::Plugin::JaJp::PersonLastNameAscii;
186  
187 my $plugin = Faker::Plugin::JaJp::PersonLastNameAscii->new;
188  
189 # bless(..., "Faker::Plugin::JaJp::PersonLastNameAscii")
190  
191 =back
192  
193 =cut
194  
195 =head1 AUTHORS
196  
197 Awncorp, C<awncorp@cpan.org>
198  
199 =cut
200  
201 =head1 LICENSE
202  
203 Copyright (C) 2000, Al Newkirk.
204  
205 This program is free software, you can redistribute it and/or modify it under
206 the terms of the Apache license version 2.0.
207  
208 =cut
« Faker/Plugin/JaJp/PersonLastName.pm ↑ Summary Faker/Plugin/JaJp/PersonName.pm »