Klonk/pragma.pm

filter: Statementstmt 97.6% 41 / 42 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 96.3% 52 / 54 CC 3 SCAR 4.1
CC
3
Cov
95%
import
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Klonk.pm ↑ Summary
1 package Klonk::pragma 0.01;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings FATAL => qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use constant MIN_PERL_VERSION => '5.36';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶no feature ':all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use feature ':' . MIN_PERL_VERSION;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶no feature qw(bareword_filehandles);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Function::Parameters 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 ▶method import($class: @items) {
Subroutine import: called CC=3 SCAR=11.1
Branch: 1 branch
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method import (expected 1, got ' . @_ . ')') 0 3 3
14 3 for my $item (@items) {
15 0 Carp::croak qq("$item" is not exported by the $class module);
16 }
17  
18 3 strict->import;
19 3 warnings->import;
20 3 warnings->import(FATAL => 'uninitialized');
21 3 feature->unimport(':all');
22 3 feature->import(':' . MIN_PERL_VERSION);
23 3 feature->unimport('bareword_filehandles');
24 3 Function::Parameters->import;
25 1 }
26  
27 1 1
28 __END__
« Klonk.pm ↑ Summary