File Coverage

blib/lib/Klonk/pragma.pm
Criterion Covered Total %
statement 39 40 97.5
branch 1 2 50.0
condition n/a
subroutine 10 10 100.0
pod n/a
total 50 52 96.1


line stmt bran cond sub pod time code
1             package Klonk::pragma 0.01;
2 1     1   5 use strict;
  1         1  
  1         31  
3 1     1   3 use warnings;
  1         1  
  1         40  
4 1     1   4 use warnings FATAL => qw(uninitialized);
  1         2  
  1         40  
5 1     1   4 use constant MIN_PERL_VERSION => '5.36';
  1         1  
  1         69  
6 1     1   4 no feature ':all';
  1         1  
  1         302  
7 1     1   6 use feature ':' . MIN_PERL_VERSION;
  1         1  
  1         73  
8 1     1   4 no feature qw(bareword_filehandles);
  1         1  
  1         29  
9 1     1   584 use Function::Parameters 2;
  1         3974  
  1         5  
10              
11 1     1   462 use Carp ();
  1         2  
  1         209  
12              
13 3 50   3   14 method import($class: @items) {
  3         7  
  3         5  
  3         5  
14 3         5 for my $item (@items) {
15 0         0 Carp::croak qq("$item" is not exported by the $class module);
16             }
17              
18 3         19 strict->import;
19 3         106 warnings->import;
20 3         60 warnings->import(FATAL => 'uninitialized');
21 3         504 feature->unimport(':all');
22 3         127 feature->import(':' . MIN_PERL_VERSION);
23 3         17 feature->unimport('bareword_filehandles');
24 3         21 Function::Parameters->import;
25             }
26              
27             1
28             __END__