ErrorHandler/Action.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 27 / 27 CC 2 SCAR 3.4
CC
2
Cov
100%
ignore
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« ErrorHandler.pm ↑ Summary ErrorHandler/Action/Log.pm »
1 package Catalyst::Action::RenderView::ErrorHandler::Action;
2 {
3 5 $Catalyst::Action::RenderView::ErrorHandler::Action::VERSION = '0.100166';
4 }
5 #ABSTRACT: A Role for any actions that want to react to errors.
6  
7 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 5 has 'id' => (is => 'ro', isa => 'Str', required => 1);
13  
14  
15 5 has 'ignore_path' => (
16 is => 'ro',
17 isa => 'Str',
18 required => 0,
19 init_arg => 'ignorePath',
20 predicate => 'has_ignore_path',
21 );
22  
23  
24 4 ▶sub ignore {
Subroutine ignore: called CC=2 SCAR=6.9
Pod documented
25 4 my ( $self, $path ) = @_;
26 4 ▶ return unless $self->has_ignore_path;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->has_ignore_path 3 1 4
27 1 my $re = $self->ignore_path;
28 1 $re = qr/\Q$re\E/;
29 1 return $path =~ m/$re/;
30 }
31  
32 5 requires 'perform';
33  
34 5 1;
35  
36 __END__
« ErrorHandler.pm ↑ Summary ErrorHandler/Action/Log.pm »