line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
19
|
|
|
19
|
|
12179
|
use 5.006; |
|
19
|
|
|
|
|
58
|
|
2
|
19
|
|
|
19
|
|
100
|
use strict; |
|
19
|
|
|
|
|
33
|
|
|
19
|
|
|
|
|
494
|
|
3
|
19
|
|
|
19
|
|
92
|
use warnings; |
|
19
|
|
|
|
|
30
|
|
|
19
|
|
|
|
|
1405
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Set::Associate::Role::RefillItems; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: A data provider for Set::Associate |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.004001'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
19
|
|
|
19
|
|
1597
|
use MooseX::Role::Parameterized qw( parameter role requires ); |
|
19
|
|
|
|
|
589936
|
|
|
19
|
|
|
|
|
168
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
parameter can_get_next => ( |
16
|
|
|
|
|
|
|
isa => Bool =>, |
17
|
|
|
|
|
|
|
is => rw =>, |
18
|
|
|
|
|
|
|
default => sub { undef }, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
parameter can_get_all => ( |
22
|
|
|
|
|
|
|
isa => Bool =>, |
23
|
|
|
|
|
|
|
is => rw =>, |
24
|
|
|
|
|
|
|
default => sub { undef }, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
parameter can_get_nth => ( |
28
|
|
|
|
|
|
|
isa => Bool =>, |
29
|
|
|
|
|
|
|
, |
30
|
|
|
|
|
|
|
is => rw =>, |
31
|
|
|
|
|
|
|
default => sub { undef }, |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
role { |
35
|
|
|
|
|
|
|
my $p = shift; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
requires name =>; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
if ( $p->can_get_next ) { |
40
|
|
|
|
|
|
|
requires get_next =>; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
if ( $p->can_get_all ) { |
43
|
|
|
|
|
|
|
requires get_all =>; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
if ( $p->can_get_nth ) { |
46
|
|
|
|
|
|
|
requires get_nth =>; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
}; |
50
|
|
|
|
|
|
|
|
51
|
19
|
|
|
19
|
|
153067
|
no MooseX::Role::Parameterized; |
|
19
|
|
|
|
|
48
|
|
|
19
|
|
|
|
|
94
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=pod |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=encoding UTF-8 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 NAME |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Set::Associate::Role::RefillItems - A data provider for Set::Associate |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 VERSION |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
version 0.004001 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
78
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |