Indexer/Interface/Null.pm

filter: Statementstmt 69.2% 18 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod 100% 2 / 2 totaltotal 63.4% 26 / 41 CC 3 SCAR 14.3
CC
3
Cov
60%
do_interface
12.0
component_type
2.0
__ANON__
2.0
CRAP 4.2
« Indexer/Reporter/Base.pm ↑ Summary Indexer/Queue/ErrorReports.pm »
1 package MyCPAN::Indexer::Interface::Null;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Log::Log4perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use parent qw(MyCPAN::Indexer::Component);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use vars qw($VERSION $logger);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 $VERSION = '1.282';
10  
11 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 $logger = Log::Log4perl->get_logger( 'Interface' );
13 }
14  
15 =encoding utf8
16  
17 =head1 NAME
18  
19 MyCPAN::Indexer::Interface::Null - Don't show anything
20  
21 =head1 SYNOPSIS
22  
23 Use this in backpan_indexer.pl by specifying it as the interface class:
24  
25 # in backpan_indexer.config
26 interface_class MyCPAN::Indexer::Interface::Null
27  
28 =head1 DESCRIPTION
29  
30 This class doesn't show anything. It's a null interface.
31  
32 =head2 Methods
33  
34 =over 4
35  
36 =item component_type
37  
38 This is an interface type.
39  
40 =cut
41  
42 0 ▶sub component_type { $_[0]->interface_type }
Subroutine component_type: not called CC=1 SCAR=6.9
Pod documented
43  
44 =item do_interface( $Notes )
45  
46 Run the interface_callback until the C<Finished> note is true. Don't do
47 anything else.
48  
49 =cut
50  
51 sub do_interface
52 0 ▶ {
Subroutine do_interface: not called CC=3 SCAR=24.8
Pod documented
53 0 my( $self ) = @_;
54 0 $logger->debug( "Calling do_interface" );
55  
56 0 while( 1 )
57 {
58 0 ▶ last if $self->get_note('Finished');
Branch: 1 branch
BranchTrueFalseTotal
if $self->get_note("Finished") 0 0 0
59  
60 0 $self->get_note('interface_callback')->();
61 }
62  
63 0 my $collator = $self->get_coordinator->get_note( 'collator' );
64 0 ▶ $collator->() if ref $collator eq ref sub {};
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
if ref $collator eq ref sub { } 0 0 0
65 }
66  
67 =back
68  
69 =head1 SEE ALSO
70  
71 MyCPAN::Indexer
72  
73 =head1 SOURCE AVAILABILITY
74  
75 This code is in Github:
76  
77 git://github.com/briandfoy/mycpan-indexer.git
78  
79 =head1 AUTHOR
80  
81 brian d foy, C<< <bdfoy@cpan.org> >>
82  
83 =head1 COPYRIGHT AND LICENSE
84  
85 Copyright © 2008-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.
86  
87 You may redistribute this under the terms of the Artistic License 2.0.
88  
89 =cut
90  
91 1 1;
« Indexer/Reporter/Base.pm ↑ Summary Indexer/Queue/ErrorReports.pm »