File Coverage

blib/lib/TableData/Perl/CPAN/Release/Static/2023.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::2023;
4              
5 1     1   330330 use 5.010001;
  1         4  
6 1     1   4 use strict;
  1         3  
  1         32  
7 1     1   4 use warnings;
  1         2  
  1         106  
8              
9 1     1   744 use Role::Tiny;
  1         5945  
  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/2023.csv';
17             unless (-f $filename) {
18             require File::ShareDir;
19             $filename = File::ShareDir::dist_file('TableData-Perl-CPAN-Release-Static-2023', '2023.csv');
20             }
21             $orig->(@_, filename=>$filename);
22             };
23              
24             package TableData::Perl::CPAN::Release::Static::2023;
25              
26 1     1   321 use 5.010001;
  1         3  
27 1     1   5 use strict;
  1         2  
  1         14  
28 1     1   2 use warnings;
  1         2  
  1         56  
29              
30 1     1   449 use Role::Tiny::With;
  1         246  
  1         115  
31              
32             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
33             our $DATE = '2024-01-01'; # DATE
34             our $DIST = 'TableData-Perl-CPAN-Release-Static-2023'; # DIST
35             our $VERSION = '20240101.0'; # VERSION
36              
37             with 'TableDataRole::Perl::CPAN::Release::Static::2023';
38              
39             our %STATS = ("num_columns",9,"num_rows",10347); # STATS
40              
41             1;
42             # ABSTRACT: CPAN releases for the year 2023
43              
44             __END__