Core/Exception/Exception.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
get_message
2.0
get_stack_trace
2.0
CRAP 2.0
1 package Javonet::Core::Exception::Exception;
2 use strict;
3 use warnings FATAL => 'all';
4 use Moose;
5 use lib 'lib';
6
7 my $message;
8 my $stack_trace;
9
10
11
12 sub new {
13 my ($proto, $exception_message, $stack_trace) = @_;
14 my $self = bless {}, $proto;
15 $message = $exception_message;
16 return $self;
17 }
18
19 sub get_message(){
20 my $self = @_;
21 return $message;
22 }
23
24 sub get_stack_trace(){
25 my $self = @_;
26 return $stack_trace;
27 }
28
29 1;