WebSocket/Extension.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 90.9% 20 / 22 CC 1 SCAR 1.5
CC
1
Cov
93%
extension
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« WebSocket/Exception.pm ↑ Summary
1 ##----------------------------------------------------------------------------
2 ## WebSocket Client & Server - ~/lib/WebSocket/Extension.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/09/30
7 ## Modified 2021/09/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::Extension;
12 BEGIN
13 6 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
14 6 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 6 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 6 ▶ use parent qw( WebSocket::HeaderValue );
Subroutine BEGIN: called CC=1 SCAR=0.0
17 6 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
18 6 our $VERSION = 'v0.1.0';
19 };
20  
21 0 ▶sub extension { return( shift->_set_get_scalar_as_object( 'value', @_ ) ); }
Subroutine extension: not called CC=1 SCAR=6.9
Pod documented
22  
23 6 1;
24 # NOTE: POD
25 __END__
« WebSocket/Exception.pm ↑ Summary