TOC/Filter/Anon.pm

filter: Statementstmt 87.5% 21 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 83.8% 26 / 31 CC 1 SCAR 1.5
CC
1
Cov
88%
node_is_interesting
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« TOC/Role/InputHandler.pm ↑ Summary TOC/Types/Internal.pm »
1 package Text::TOC::Filter::Anon;
2 {
3 2 $Text::TOC::Filter::Anon::VERSION = '0.10';
4 }
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use Text::TOC::Types qw( CodeRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 with 'Text::TOC::Role::Filter';
15  
16 2 has _code => (
17 is => 'ro',
18 isa => CodeRef,
19 init_arg => 'code',
20 required => 1,
21 );
22  
23 0 ▶sub node_is_interesting {
Subroutine node_is_interesting: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my $self = shift;
25 0 my $node = shift;
26  
27 0 return $self->_code()->($node);
28 }
29  
30 2 __PACKAGE__->meta()->make_immutable();
31  
32 2 1;
33  
34 # ABSTRACT: Node filter wrapper for subroutine references
35  
36  
37  
38 __END__
« TOC/Role/InputHandler.pm ↑ Summary TOC/Types/Internal.pm »