blib/lib/Lingy/Exception.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 2 SCAR 12.8
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 use strict; use warnings;
2 package Lingy::Exception;
3  
4 use overload '""' => sub {
5 $_[0]->{msg};
6 };
7  
8 sub new {
9 my ($class, $msg, $data) = @_;
10 my $self = bless { msg => $msg }, $class;
11 $self->{data} = $data if $data;
12 return $self;
13 }
14  
15 1;