line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ## no critic: Modules::RequireFilenameMatchesPackage |
2
|
|
|
|
|
|
|
# hide from PAUSE |
3
|
|
|
|
|
|
|
TableDataRole::Test::Source::CSVInFile; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
72527
|
use 5.010001; |
|
2
|
|
|
|
|
15
|
|
6
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
51
|
|
7
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
72
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
644
|
use Role::Tiny; |
|
2
|
|
|
|
|
4398
|
|
|
2
|
|
|
|
|
19
|
|
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/examples/eng-ind1.csv'; |
17
|
|
|
|
|
|
|
unless (-f $filename) { |
18
|
|
|
|
|
|
|
require File::ShareDir; |
19
|
|
|
|
|
|
|
$filename = File::ShareDir::dist_file('TableDataRoles-Standard', 'examples/eng-ind1.csv'); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
$orig->(@_, filename=>$filename); |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
package TableData::Test::Source::CSVInFile; |
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
2
|
|
733
|
use 5.010001; |
|
2
|
|
|
|
|
8
|
|
27
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
28
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
50
|
|
29
|
|
|
|
|
|
|
|
30
|
2
|
|
|
2
|
|
483
|
use Role::Tiny::With; |
|
2
|
|
|
|
|
263
|
|
|
2
|
|
|
|
|
262
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
33
|
|
|
|
|
|
|
our $DATE = '2023-06-14'; # DATE |
34
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
35
|
|
|
|
|
|
|
our $VERSION = '0.016'; # VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
with 'TableDataRole::Test::Source::CSVInFile'; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
# ABSTRACT: Some English words with Indonesian equivalents |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |