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