WebApp/Segment/Decline/TemplateInStore.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 32 / 32 CC 2 SCAR 2.2
CC
2
Cov
100%
should_decline
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« WebApp/Segment/Decline/SessionInStore.pm ↑ Summary WebApp/Segment/Decline/UserInStore.pm »
1 =head1 NAME
2  
3 OpenFrame::WebApp::Segment::Decline::TemplateInStore - decline if Template found in store
4  
5 =head1 SYNOPSIS
6  
7 # see OpenFrame::WebApp::Segment::Decline
8  
9 =cut
10  
11 package OpenFrame::WebApp::Segment::Decline::TemplateInStore;
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use Pipeline::Production;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use OpenFrame::WebApp::Error::Abstract;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 our $VERSION = (split(/ /, '$Revision: 1.1 $'))[1];
20  
21 1 ▶use base qw( OpenFrame::WebApp::Segment::Decline OpenFrame::WebApp::Segment::Template );
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 ▶use constant message => 'declined: template in store';
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 2 ▶sub should_decline {
Subroutine should_decline: called CC=2 SCAR=6.9
Pod documented
26 2 my $self = shift;
27 2 ▶ return $self->get_template_from_store ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$self->get_template_from_store ? : 1 1 2
28 }
29  
30  
31 1 1;
32  
33 __END__
« WebApp/Segment/Decline/SessionInStore.pm ↑ Summary WebApp/Segment/Decline/UserInStore.pm »