File Coverage

blib/lib/TableData/Test/Source/CSVInDATA.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package TableData::Test::Source::CSVInDATA;
2              
3 3     3   551268 use 5.010001;
  3         12  
4 3     3   18 use strict;
  3         6  
  3         107  
5 3     3   12 use warnings;
  3         11  
  3         182  
6              
7 3     3   1470 use Role::Tiny::With;
  3         20543  
  3         444  
8              
9             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10             our $DATE = '2024-05-14'; # DATE
11             our $DIST = 'TableDataRoles-Standard'; # DIST
12             our $VERSION = '0.025'; # VERSION
13              
14             with 'TableDataRole::Source::CSVInDATA';
15              
16             1;
17             # ABSTRACT: Number from 1-5 with English and Indonesian text
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             TableData::Test::Source::CSVInDATA - Number from 1-5 with English and Indonesian text
26              
27             =head1 VERSION
28              
29             This document describes version 0.025 of TableData::Test::Source::CSVInDATA (from Perl distribution TableDataRoles-Standard), released on 2024-05-14.
30              
31             =head1 SYNOPSIS
32              
33             To use from Perl code:
34              
35             use TableData::Test::Source::CSVInDATA;
36              
37             my $td = TableData::Test::Source::CSVInDATA->new;
38              
39             # Iterate rows of the table
40             $td->each_row_arrayref(sub { my $row = shift; ... });
41             $td->each_row_hashref (sub { my $row = shift; ... });
42              
43             # Get the list of column names
44             my @columns = $td->get_column_names;
45              
46             # Get the number of rows
47             my $row_count = $td->get_row_count;
48              
49             See also L for other methods.
50              
51             To use from command-line (using L CLI):
52              
53             # Display as ASCII table and view with pager
54             % tabledata Test::Source::CSVInDATA --page
55              
56             # Get number of rows
57             % tabledata --action count_rows Test::Source::CSVInDATA
58              
59             See the L CLI's documentation for other available actions and options.
60              
61             =head1 HOMEPAGE
62              
63             Please visit the project's homepage at L.
64              
65             =head1 SOURCE
66              
67             Source repository is at L.
68              
69             =head1 AUTHOR
70              
71             perlancar
72              
73             =head1 CONTRIBUTING
74              
75              
76             To contribute, you can send patches by email/via RT, or send pull requests on
77             GitHub.
78              
79             Most of the time, you don't need to build the distribution yourself. You can
80             simply modify the code, then test via:
81              
82             % prove -l
83              
84             If you want to build the distribution (e.g. to try to install it locally on your
85             system), you can install L,
86             L,
87             L, and sometimes one or two other
88             Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
89             that are considered a bug and can be reported to me.
90              
91             =head1 COPYRIGHT AND LICENSE
92              
93             This software is copyright (c) 2024, 2023, 2022, 2021 by perlancar .
94              
95             This is free software; you can redistribute it and/or modify it under
96             the same terms as the Perl 5 programming language system itself.
97              
98             =head1 BUGS
99              
100             Please report any bugs or feature requests on the bugtracker website L
101              
102             When submitting a bug or request, please include a test-file or a
103             patch to an existing test-file that illustrates the bug or desired
104             feature.
105              
106             =cut
107              
108             __DATA__