File Coverage

blib/lib/TableData/Perl/CPAN/Release/Static/2022.pm
Criterion Covered Total %
statement 22 22 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 30 30 100.0


line stmt bran cond sub pod time code
1             package ## no critic: Modules::RequireFilenameMatchesPackage
2             # hide from PAUSE
3             TableDataRole::Perl::CPAN::Release::Static::2022;
4              
5 1     1   436461 use 5.010001;
  1         4  
6 1     1   5 use strict;
  1         2  
  1         23  
7 1     1   7 use warnings;
  1         2  
  1         85  
8              
9 1     1   532 use Role::Tiny;
  1         5825  
  1         7  
10             with 'TableDataRole::Source::CSVInFile';
11              
12             around new => sub {
13             my $orig = shift;
14              
15             require File::Basename;
16             my $filename = File::Basename::dirname(__FILE__) . '/../../../../../../share/2022.csv';
17             unless (-f $filename) {
18             require File::ShareDir;
19             $filename = File::ShareDir::dist_file('TableData-Perl-CPAN-Release-Static-2022', '2022.csv');
20             }
21             $orig->(@_, filename=>$filename);
22             };
23              
24             package TableData::Perl::CPAN::Release::Static::2022;
25              
26 1     1   2119 use 5.010001;
  1         3  
27 1     1   9 use strict;
  1         4  
  1         34  
28 1     1   4 use warnings;
  1         2  
  1         67  
29              
30 1     1   514 use Role::Tiny::With;
  1         368  
  1         141  
31              
32             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
33             our $DATE = '2023-11-20'; # DATE
34             our $DIST = 'TableData-Perl-CPAN-Release-Static-2022'; # DIST
35             our $VERSION = '20231120.1'; # VERSION
36              
37             with 'TableDataRole::Perl::CPAN::Release::Static::2022';
38              
39             our %STATS = ("num_columns",9,"num_rows",9605); # STATS
40              
41             1;
42             # ABSTRACT: CPAN releases for the year 2022
43              
44             __END__