Klonk/Handle.pm

filter: Statementstmt 37.5% 9 / 24 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 32.5% 13 / 40 CC 6 SCAR 25.7
CC
6
Cov
26%
openr
20.0
path
12.0
BEGIN
1.0
CRAP 13.1
« Klonk/Env.pm ↑ Summary Klonk.pm »
1 package Klonk::Handle 0.01;
2 1 ▶use Klonk::pragma;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use parent 'IO::Handle';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶method openr($class: $file) {
Subroutine openr: not called CC=4 SCAR=30.0
Pod documented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 2 and Function::Parameters::_croak('Too few arguments for method openr (expected 2, got ' . @_ . ')') 0 0 0
@_ > 2 and Function::Parameters::_croak('Too many arguments for method openr (expected 2, got ' . @_ . ')') 0 0 0
6 0 ▶ open my $fh, '<:raw', $file
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, "<:raw", $file or return undef 0 0 0
7 or return undef;
8 0 ${*$fh} = $file;
9 0 bless $fh, $class
10 1 }
11  
12 0 ▶method path() {
Subroutine path: not called CC=3 SCAR=24.8
Pod documented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method path (expected 1, got ' . @_ . ')') 0 0 0
@_ > 1 and Function::Parameters::_croak('Too many arguments for method path (expected 1, got ' . @_ . ')') 0 0 0
13 0 ${*$self}
14 1 }
15  
16 1 1
17 __END__
« Klonk/Env.pm ↑ Summary Klonk.pm »