Carp/Reply.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 1 / 1 totaltotal 62.8% 22 / 35 CC 2 SCAR 8.5
CC
2
Cov
62%
repl
6.0
import
2.0
__ANON__
2.0
CRAP 2.3
« Reply/Plugin/CarpReply.pm ↑ Summary
1 package Carp::Reply;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Carp::Reply::AUTHORITY = 'cpan:DOY';
4 }
5 {
6 1 $Carp::Reply::VERSION = '0.08';
7 }
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 # ABSTRACT: get a repl on exceptions in your program
11  
12 1 ▶use Reply 0.27;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Reply::Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 0 ▶sub import {
Subroutine import: not called CC=1 SCAR=6.9
17 0 my $package = shift;
18  
19 0 ▶ $SIG{__DIE__} = sub { print $_[0]; repl() };
Subroutine __ANON__: not called CC=1 SCAR=6.9
20 }
21  
22  
23 0 ▶sub repl {
Subroutine repl: not called CC=2 SCAR=17.9
Pod documented
24 0 my ($quiet) = @_;
25 0 my $repl = Reply->new(
26 config => Reply::Config->new,
27 plugins => ['CarpReply']
28 );
29 0 ▶ $repl->step('#bt') unless $quiet;
Branch: 1 branch
BranchTrueFalseTotal
unless $quiet 0 0 0
30 0 $repl->run;
31 }
32  
33  
34 1 1;
35  
36 __END__
« Reply/Plugin/CarpReply.pm ↑ Summary