line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EnUs::InternetUrl; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
22068
|
use 5.018; |
|
2
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
48
|
|
6
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
62
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
12
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EnUs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
6
|
|
|
6
|
1
|
1189
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
26
|
return $self->process_format( |
22
|
|
|
|
|
|
|
$self->faker->random->select(data_for_internet_url()) |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub data_for_internet_url { |
27
|
6
|
|
|
6
|
0
|
30
|
state $internet_url = [ |
28
|
|
|
|
|
|
|
'https://www.{{internet_domain_name}}/', |
29
|
|
|
|
|
|
|
'https://{{internet_domain_name}}/', |
30
|
|
|
|
|
|
|
'http://www.{{internet_domain_name}}/', |
31
|
|
|
|
|
|
|
'http://{{internet_domain_name}}/', |
32
|
|
|
|
|
|
|
'http://{{internet_domain_name}}/', |
33
|
|
|
|
|
|
|
] |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Faker::Plugin::EnUs::InternetUrl - Internet Url |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 ABSTRACT |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Internet Url for Faker |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 VERSION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1.17 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SYNOPSIS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
package main; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::InternetUrl; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::InternetUrl->new; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::InternetUrl") |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 DESCRIPTION |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This package provides methods for generating fake data for internet url. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=encoding utf8 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 INHERITS |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This package inherits behaviors from: |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
L |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 METHODS |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This package provides the following methods: |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 execute |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
The execute method returns a returns a random fake internet url. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
I> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=over 4 |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item execute example 1 |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
package main; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::InternetUrl; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::InternetUrl->new; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::InternetUrl") |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# "https://krajcik-skiles-and-mayer.com/"; |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
# "http://heidenreich-beier.co/"; |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
# "https://goldner-mann-and-emard.org/"; |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=back |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=cut |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 new |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
I> |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=over 4 |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=item new example 1 |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
package main; |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::InternetUrl; |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::InternetUrl->new; |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::InternetUrl") |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=back |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |