line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::PingbackIteratorFinder; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
463
|
use strict; |
|
14
|
|
|
|
|
14
|
|
|
14
|
|
|
|
|
297
|
|
4
|
14
|
|
|
14
|
|
39
|
use warnings; |
|
14
|
|
|
|
|
29
|
|
|
14
|
|
|
|
|
282
|
|
5
|
|
|
|
|
|
|
|
6
|
14
|
|
|
14
|
|
45
|
use base 'Mojo::Base'; |
|
14
|
|
|
|
|
13
|
|
|
14
|
|
|
|
|
914
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->attr('iterator'); |
9
|
|
|
|
|
|
|
|
10
|
14
|
|
|
14
|
|
3207
|
use Bootylicious::IteratorSearchable; |
|
14
|
|
|
|
|
20
|
|
|
14
|
|
|
|
|
87
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
7
|
|
|
7
|
1
|
1516
|
my $self = shift->SUPER::new(@_); |
14
|
|
|
|
|
|
|
|
15
|
7
|
50
|
|
|
|
50
|
Carp::croak q/Iterator is a required parameter/ unless $self->iterator; |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
|
|
50
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub find { |
21
|
8
|
|
|
8
|
0
|
18
|
my $self = shift; |
22
|
8
|
|
|
|
|
12
|
my ($source_uri) = @_; |
23
|
|
|
|
|
|
|
|
24
|
8
|
|
|
|
|
17
|
my $iterator = Bootylicious::IteratorSearchable->new($self->iterator); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return $iterator->find_first( |
27
|
|
|
|
|
|
|
sub { |
28
|
6
|
|
|
6
|
|
22
|
my ($iterator, $elem) = @_; |
29
|
|
|
|
|
|
|
|
30
|
6
|
100
|
|
|
|
14
|
return unless $elem->source_uri eq $source_uri; |
31
|
|
|
|
|
|
|
|
32
|
4
|
|
|
|
|
31
|
return $elem; |
33
|
|
|
|
|
|
|
} |
34
|
8
|
|
|
|
|
47
|
); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |