QuadPres/Exception.pm

filter: Statementstmt 69.2% 18 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 2 / 2 totaltotal 69.4% 25 / 36 CC 1 SCAR 3.2
CC
1
Cov
69%
_init
2.0
throw
2.0
text
2.0
CRAP 1.4
« QuadPres/Config.pm ↑ Summary QuadPres/Base.pm »
1 package QuadPres::Exception;
2 1 $QuadPres::Exception::VERSION = '0.32.0';
3 1 ▶use 5.016;
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  
7 1 ▶use parent 'QuadPres::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub _init
10 0 ▶{
Subroutine _init: not called CC=1 SCAR=6.9
11 0 return;
12 }
13  
14 sub throw
15 0 ▶{
Subroutine throw: not called CC=1 SCAR=6.9
Pod documented
16 0 my $class = shift;
17 0 my $args = shift;
18  
19 0 my $exception = $class->new();
20 0 $exception->{'text'} = $args->{text};
21  
22 0 die $exception;
23 }
24  
25 sub text
26 0 ▶{
Subroutine text: not called CC=1 SCAR=6.9
Pod documented
27 0 my $self = shift;
28  
29 0 return $self->{'text'};
30 }
31  
32 package QuadPres::Exception::RenderFile;
33 1 $QuadPres::Exception::RenderFile::VERSION = '0.32.0';
34 1 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 1 @ISA = qw(QuadPres::Exception);
37  
38 1 1;
39  
40 __END__
« QuadPres/Config.pm ↑ Summary QuadPres/Base.pm »