line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Plugin::Shorten::Store::Dummy; |
2
|
6
|
|
|
6
|
|
9328550
|
use strict; use warnings; |
|
6
|
|
|
6
|
|
47
|
|
|
6
|
|
|
|
|
169
|
|
|
6
|
|
|
|
|
29
|
|
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
289
|
|
3
|
6
|
|
|
6
|
|
835
|
our (%store, $i); BEGIN { $i = 0; } |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub shorten_get_data { |
6
|
24
|
|
|
24
|
1
|
71
|
my ( $c, $id ) = @_; |
7
|
24
|
|
|
|
|
81
|
$store{$id}; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub shorten_set_data { |
11
|
19
|
|
|
19
|
1
|
1903
|
my $c = shift; |
12
|
19
|
|
|
|
|
100
|
my (%data) = @_; |
13
|
19
|
|
|
|
|
90
|
$store{++$i} = \%data; |
14
|
19
|
|
|
|
|
70
|
return $i; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub shorten_delete_data { |
18
|
2
|
|
|
2
|
1
|
7
|
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 |