blib/lib/Compress/Zstd/CompressionDictionary.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 89.6% 26 / 29 CC 3 SCAR 6.4
CC
3
Cov
91%
new_from_file
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« builder/MyBuilder.pm ↑ Summary blib/lib/Compress/Zstd/DecompressionDictionary.pm »
1 package Compress::Zstd::CompressionDictionary;
2 1 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Compress::Zstd ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶sub new_from_file {
Subroutine new_from_file: called CC=3 SCAR=11.2
Pod documented
9 1 my ($class, $file, $level) = @_;
10 1 ▶ open my $fh, '<', $file or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, "<", $file or die $! 1 0 1
11 1 local $/;
12 1 my $dict = <$fh>;
13 1 close $fh;
14 1 ▶ $class->new($dict, $level || 1);
Condition50%1/2
$level || 1
l!l
10
MC/DC0%0/1
$level || 1
$level
Truth table50%1/2
A
A= $level
Aresult
11
00
15 }
16  
17 1 1;
18 __END__
« builder/MyBuilder.pm ↑ Summary blib/lib/Compress/Zstd/DecompressionDictionary.pm »