blib/lib/ExtUtils/XSpp/Exception/unknown.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 50.0% 1 / 2 totaltotal 92.5% 25 / 27 CC 2 SCAR 2.9
CC
2
Cov
95%
handler_code
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« XSP.yp ↑ Summary blib/lib/ExtUtils/XSpp/Exception/simple.pm »
1 package ExtUtils::XSpp::Exception::unknown;
2 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 21 ▶use base 'ExtUtils::XSpp::Exception';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 95 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
8 95 my $this = shift;
9 95 $this->SUPER::init(@_);
10 }
11  
12 91 ▶sub handler_code {
Subroutine handler_code: called CC=2 SCAR=7.0
Pod documented
13 91 my $this = shift;
14 91 my $no_spaces_indent = shift;
15 91 ▶ $no_spaces_indent = 4 if not defined $no_spaces_indent;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $no_spaces_indent 91 0 91
16  
17 91 my $msg = "Caught C++ exception of unknown type";
18 91 my $code = <<HERE;
19 catch (...) {
20 croak("$msg");
21 }
22 HERE
23 91 return $this->indent_code($code, $no_spaces_indent);
24 }
25  
26 21 1;
« XSP.yp ↑ Summary blib/lib/ExtUtils/XSpp/Exception/simple.pm »