line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Plugin::Shorten::Store::Dummy; |
2
|
6
|
|
|
6
|
|
11166781
|
use strict; use warnings; |
|
6
|
|
|
6
|
|
55
|
|
|
6
|
|
|
|
|
202
|
|
|
6
|
|
|
|
|
33
|
|
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
440
|
|
3
|
6
|
|
|
6
|
|
1018
|
our (%store, $i); BEGIN { $i = 0; } |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub shorten_get_data { |
6
|
24
|
|
|
24
|
1
|
73
|
my ( $c, $id ) = @_; |
7
|
24
|
|
|
|
|
88
|
$store{$id}; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub shorten_set_data { |
11
|
19
|
|
|
19
|
1
|
2330
|
my $c = shift; |
12
|
19
|
|
|
|
|
77
|
my (%data) = @_; |
13
|
19
|
|
|
|
|
90
|
$store{++$i} = \%data; |
14
|
19
|
|
|
|
|
79
|
return $i; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub shorten_delete_data { |
18
|
2
|
|
|
2
|
1
|
6
|
my ( $c, $id ) = @_; |
19
|
2
|
|
|
|
|
14
|
delete $store{$id}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Catalyst::Plugin::Shorten::Store::Dummy |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHOS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 shorten_get_data |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 shorten_set_data |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 shorten_delete_data |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
LNATION, C<< <thisusedtobeanemail at gmail.com> >> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |