line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::UserLogin; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
21609
|
use 5.018; |
|
2
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
17
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
47
|
|
6
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
76
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
13
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
19
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
6
|
|
|
6
|
1
|
2869
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
32
|
return $self->process_markers( |
22
|
|
|
|
|
|
|
$self->process_format($self->faker->random->select(format_for_username())) |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub format_for_username { |
27
|
6
|
|
|
6
|
0
|
35
|
state $name = [ |
28
|
|
|
|
|
|
|
'{{person_last_name}}.{{person_first_name}}', |
29
|
|
|
|
|
|
|
'{{person_first_name}}.{{person_last_name}}', |
30
|
|
|
|
|
|
|
'{{person_first_name}}##', |
31
|
|
|
|
|
|
|
'{{person_first_name}}####', |
32
|
|
|
|
|
|
|
'?{{person_last_name}}', |
33
|
|
|
|
|
|
|
'?{{person_last_name}}####', |
34
|
|
|
|
|
|
|
] |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Faker::Plugin::UserLogin - User Login |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 ABSTRACT |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
User Login for Faker |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1.17 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SYNOPSIS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
package main; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
use Faker::Plugin::UserLogin; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::UserLogin->new; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::UserLogin") |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 DESCRIPTION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This package provides methods for generating fake data for user login. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=encoding utf8 |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 INHERITS |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This package inherits behaviors from: |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
L |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 METHODS |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This package provides the following methods: |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=cut |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 execute |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
The execute method returns a returns a random fake user login. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
I> |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=over 4 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item execute example 1 |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
package main; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
use Faker::Plugin::UserLogin; |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::UserLogin->new( |
110
|
|
|
|
|
|
|
faker => {locales => ['en-us']}, |
111
|
|
|
|
|
|
|
); |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::UserLogin") |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# "Russel44"; |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
# "aMayer7694"; |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
# "Amalia89"; |
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> |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=over 4 |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=item new example 1 |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
package main; |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
use Faker::Plugin::UserLogin; |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::UserLogin->new; |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::UserLogin") |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=back |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=cut |