blib/lib/Compress/Zstd/DecompressionDictionary.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 96.1% 25 / 26 CC 2 SCAR 2.9
CC
2
Cov
95%
new_from_file
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Compress/Zstd/CompressionDictionary.pm ↑ Summary lib/Compress/Zstd.xs »
1 package Compress::Zstd::DecompressionDictionary;
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=2 SCAR=7.0
Pod documented
9 1 my ($class, $file) = @_;
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);
15 }
16  
17 1 1;
18 __END__
« blib/lib/Compress/Zstd/CompressionDictionary.pm ↑ Summary lib/Compress/Zstd.xs »