Metro/Hook.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 86.2% 25 / 29 CC 1 SCAR 1.5
CC
1
Cov
91%
perform
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Metro/Cmd/Available.pm ↑ Summary Metro/Graph/LineStation.pm »
1 15 ▶use 5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Map::Metro::Hook;
6  
7 # ABSTRACT: Hook into Map::Metro
8 15 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 15 our $VERSION = '0.2405';
10  
11 15 ▶use Map::Metro::Elk;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 15 ▶use Types::Standard qw/CodeRef Enum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 15 has event => (
15 is => 'ro',
16 isa => Enum[qw/
17 before_add_station
18 before_start_routing
19 before_add_routing
20 /],
21 );
22 15 has action => (
23 is => 'ro',
24 isa => CodeRef,
25 );
26 15 has plugin => (
27 is => 'ro',
28 );
29  
30 0 ▶sub perform {
Subroutine perform: not called CC=1 SCAR=6.9
Pod undocumented
31 0 my $self = shift;
32 0 $self->action(@_);
33 }
34  
35 15 1;
36  
37 __END__
« Metro/Cmd/Available.pm ↑ Summary Metro/Graph/LineStation.pm »