line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::JaJp::AddressNumber; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
22228
|
use 5.018; |
|
3
|
|
|
|
|
13
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
21
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
64
|
|
6
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
93
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
18
|
use Venus::Class 'base'; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
30
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::JaJp'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.18'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
7
|
|
|
7
|
1
|
1117
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
7
|
|
|
|
|
24
|
return $self->faker->random->range(101, 110); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Faker::Plugin::JaJp::AddressNumber - Address Number |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 ABSTRACT |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Address Number for Faker |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1.18 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SYNOPSIS |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
package main; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressNumber; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressNumber->new; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressNumber") |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 DESCRIPTION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This package provides methods for generating fake data for address number. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=encoding utf8 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 INHERITS |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This package inherits behaviors from: |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
L |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 METHODS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This package provides the following methods: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 execute |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The execute method returns a returns a random fake address number. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
I> |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=over 4 |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item execute example 1 |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
package main; |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressNumber; |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressNumber->new; |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressNumber") |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
# 104; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# 105; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# 109; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=back |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 new |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
I> |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=over 4 |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item new example 1 |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
package main; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressNumber; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressNumber->new; |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressNumber") |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=back |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=cut |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head1 AUTHORS |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Awncorp, C |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=head1 LICENSE |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
151
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=cut |