line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MyCPAN::Indexer::Interface::Null; |
2
|
1
|
|
|
1
|
|
2133
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use Log::Log4perl; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
55
|
use parent qw(MyCPAN::Indexer::Component); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
63
|
use vars qw($VERSION $logger); |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
82
|
|
9
|
|
|
|
|
|
|
$VERSION = '1.28_12'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
BEGIN { |
12
|
1
|
|
|
1
|
|
6
|
$logger = Log::Log4perl->get_logger( 'Interface' ); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
MyCPAN::Indexer::Interface::Null - Don't show anything |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Use this in backpan_indexer.pl by specifying it as the interface class: |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# in backpan_indexer.config |
24
|
|
|
|
|
|
|
interface_class MyCPAN::Indexer::Interface::Null |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
This class doesn't show anything. It's a null interface. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 Methods |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=over 4 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item component_type |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This is an interface type. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub component_type { $_[0]->interface_type } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item do_interface( $Notes ) |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Run the interface_callback until the C note is true. Don't do |
45
|
|
|
|
|
|
|
anything else. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub do_interface |
50
|
|
|
|
|
|
|
{ |
51
|
0
|
|
|
0
|
1
|
|
my( $self ) = @_; |
52
|
0
|
|
|
|
|
|
$logger->debug( "Calling do_interface" ); |
53
|
|
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
while( 1 ) |
55
|
|
|
|
|
|
|
{ |
56
|
0
|
0
|
|
|
|
|
last if $self->get_note('Finished'); |
57
|
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
$self->get_note('interface_callback')->(); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
my $collator = $self->get_coordinator->get_note( 'collator' ); |
62
|
0
|
0
|
|
0
|
|
|
$collator->() if ref $collator eq ref sub {}; |
|
0
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=back |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 SEE ALSO |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
MyCPAN::Indexer |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 SOURCE AVAILABILITY |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This code is in Github: |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
git://github.com/briandfoy/mycpan-indexer.git |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 AUTHOR |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
brian d foy, C<< >> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Copyright (c) 2008-2013, brian d foy, All Rights Reserved. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
You may redistribute this under the same terms as Perl itself. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |