line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ## no critic: Modules::RequireFilenameMatchesPackage |
2
|
|
|
|
|
|
|
# hide from PAUSE |
3
|
|
|
|
|
|
|
TableDataRole::Test::Source::CSVInFiles; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
73792
|
use 5.010001; |
|
1
|
|
|
|
|
14
|
|
6
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
7
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
594
|
use Role::Tiny; |
|
1
|
|
|
|
|
4430
|
|
|
1
|
|
|
|
|
5
|
|
10
|
|
|
|
|
|
|
with 'TableDataRole::Source::CSVInFiles'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
around new => sub { |
13
|
|
|
|
|
|
|
my $orig = shift; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
require File::Basename; |
16
|
|
|
|
|
|
|
my @filenames; |
17
|
|
|
|
|
|
|
for my $i (1..3) { |
18
|
|
|
|
|
|
|
my $filename = File::Basename::dirname(__FILE__) . "/../../../../share/examples/eng-ind$i.csv"; |
19
|
|
|
|
|
|
|
unless (-f $filename) { |
20
|
|
|
|
|
|
|
require File::ShareDir; |
21
|
|
|
|
|
|
|
$filename = File::ShareDir::dist_file('TableDataRoles-Standard', "examples/eng-ind$i.csv"); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
push @filenames, $filename; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
$orig->(@_, filenames=>\@filenames); |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
package TableData::Test::Source::CSVInFiles; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
396
|
use 5.010001; |
|
1
|
|
|
|
|
4
|
|
31
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
32
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
|
504
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
271
|
|
|
1
|
|
|
|
|
101
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
37
|
|
|
|
|
|
|
our $DATE = '2023-06-14'; # DATE |
38
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
39
|
|
|
|
|
|
|
our $VERSION = '0.016'; # VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
with 'TableDataRole::Test::Source::CSVInFiles'; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
# ABSTRACT: Some English words with Indonesian equivalents |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |