blib/lib/MooseX/Exception/Rot13.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 1 ▶use 5.008003;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package MooseX::Exception::Rot13;
6  
7 our $AUTHORITY = 'cpan:TOBYINK';
8 our $VERSION = '0.001';
9  
10 1 ▶use Moose 2.1102 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Moose::Exception ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 Moose::Util::find_meta('Moose::Exception')->add_around_method_modifier(
14 message => sub {
15 my $next = shift;
16 my $self = shift;
17 my $mesg = $self->$next(@_);
18 $mesg =~ tr/N-ZA-Mn-za-m/A-Za-z/;
19 return $mesg;
20 },
21 );
22  
23 1;
24  
25 __END__
↑ Summary