Markdent/Handler/Multiplexer.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.9% 32 / 33 CC 2 SCAR 2.2
CC
2
Cov
100%
handle_event
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Markdent/Types/Internal.pm ↑ Summary Markdent/Handler/HTMLFilter.pm »
1 package Markdent::Handler::Multiplexer;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.41';
8  
9 1 ▶use Markdent::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 with 'Markdent::Role::Handler';
15  
16 1 has _handlers => (
17 is => 'ro',
18 isa => t( 'ArrayRef', of => t('HandlerObject') ),
19 init_arg => 'handlers',
20 required => 1,
21 );
22  
23 264 ▶sub handle_event {
Subroutine handle_event: called CC=2 SCAR=6.9
Pod undocumented
24 264 $_->handle_event( $_[1] ) for @{ $_[0]->_handlers };
25 }
26  
27 1 __PACKAGE__->meta->make_immutable;
28  
29 1 1;
30  
31 # ABSTRACT: Passes events on to multiple handlers
32  
33 __END__
« Markdent/Types/Internal.pm ↑ Summary Markdent/Handler/HTMLFilter.pm »