WebSocket/Exception.pm

filter: Statementstmt 100% 24 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 97.1% 34 / 35 CC 2 SCAR 2.0
CC
2
Cov
96%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« WebSocket.pm ↑ Summary WebSocket/Extension.pm »
1 ##----------------------------------------------------------------------------
2 ## WebSocket Client & Server - ~/lib/WebSocket/Exception.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2023 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2023/04/30
7 ## Modified 2023/04/30
8 ## You can use, copy, modify and redistribute this package and associated
9 ## files under the same terms as Perl itself.
10 ##----------------------------------------------------------------------------
11 package WebSocket::Exception;
12 BEGIN
13 4 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 4 ▶ use parent qw( Module::Generic::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
17 4 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 our $VERSION = 'v0.1.0';
19 };
20  
21 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 sub init
25 9 ▶{
Subroutine init: called CC=2 SCAR=7.0
Pod documented
26 9 my $self = shift( @_ );
27 9 $self->{_init_strict_use_sub} = 1;
28 9 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 9 0 9
29 9 return( $self );
30 }
31  
32 4 1;
33 # NOTE: POD
34 __END__
« WebSocket.pm ↑ Summary WebSocket/Extension.pm »