blib/lib/IO/Compress/Brotli.pm

filter: Statementstmt 88.0% 22 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 82.8% 29 / 35 CC 2 SCAR 8.1
CC
2
Cov
81%
mode
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
↑ Summary blib/lib/IO/Uncompress/Brotli.pm »
1 package IO::Compress::Brotli;
2  
3 2 ▶use 5.008000;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use parent qw/Exporter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Carp qw/croak/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use IO::Uncompress::Brotli;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 our @EXPORT = qw/bro/;
13 2 our @EXPORT_OK = @EXPORT;
14  
15 2 our $VERSION = '0.023';
16  
17 2 my %BROTLI_ENCODER_MODE = ( generic => 0, text => 1, font => 2 );
18 0 ▶sub mode {
Subroutine mode: not called CC=2 SCAR=17.9
Pod documented
19 0 my ($self, $mode) = @_;
20  
21 croak 'Invalid encoder mode'
22 0 ▶ unless $BROTLI_ENCODER_MODE{$mode};
Branch: 1 branch
BranchTrueFalseTotal
unless $BROTLI_ENCODER_MODE{$mode} 0 0 0
23  
24 0 _mode($$self, $mode)
25 }
26  
27  
28 2 1;
29 __END__
↑ Summary blib/lib/IO/Uncompress/Brotli.pm »