blib/lib/Catalyst/Action/RenderView/ErrorHandler/Action/Email.pm

filter: Statementstmt 69.5% 16 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 66.6% 20 / 30 CC 2 SCAR 8.9
CC
2
Cov
70%
perform
6.0
__ANON__
1.1
BEGIN
1.0
CRAP 2.4
↑ Summary
1 package Catalyst::Action::RenderView::ErrorHandler::Action::Email;
2
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 1 our $VERSION = '0.04';
9
10 1 with 'Catalyst::Action::RenderView::ErrorHandler::Action';
11
12 0 ▶has 'options' => (is => 'rw', isa => 'HashRef', default => sub { [] });
Subroutine __ANON__: not called CC=1 SCAR=1.2
13 1 has 'view' => (is => 'ro', isa => 'Str');
14
15 0 ▶sub perform {
Subroutine perform: not called CC=2 SCAR=17.9
Pod undocumented
16 0 my $self = shift;
17 0 my $c = shift;
18
19 #Add defined options field to catalyst stash
20 0 foreach my $key (keys %{$self->{options}}) {
21 $c->stash->{email}->{$key} = $self
22 0 ->{options}->{$key};
23 }
24
25 0 $c->forward( $c->view($self->view) );
26 }
27
28 1 1;
29 __END__
↑ Summary