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
|
|
74904
|
use 5.010001; |
|
1
|
|
|
|
|
12
|
|
6
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
7
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
53
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
683
|
use Role::Tiny; |
|
1
|
|
|
|
|
4488
|
|
|
1
|
|
|
|
|
6
|
|
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
|
|
381
|
use 5.010001; |
|
1
|
|
|
|
|
4
|
|
31
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
32
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
|
503
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
280
|
|
|
1
|
|
|
|
|
103
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
37
|
|
|
|
|
|
|
our $DATE = '2023-02-24'; # DATE |
38
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
39
|
|
|
|
|
|
|
our $VERSION = '0.015'; # VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
with 'TableDataRole::Test::Source::CSVInFiles'; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
# ABSTRACT: Some English words with Indonesian equivalents |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |