TableData/Munge/MungeColumns.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TableData/Munge/GroupRows.pm ↑ Summary TableData/Munge/Reverse.pm »
1 package TableData::Munge::MungeColumns;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 1 our $DATE = '2024-05-14'; # DATE
11 1 our $DIST = 'TableDataRoles-Standard'; # DIST
12 1 our $VERSION = '0.025'; # VERSION
13  
14 1 with 'TableDataRole::Munge::MungeColumns';
15  
16 1 our %SPEC;
17  
18 $SPEC{new} = {
19 1 v => 1.1,
20 is_meth => 1,
21 is_func => 0,
22 args => {
23 tabledata => {
24 schema => 'any*', # TMP
25 req => 1,
26 },
27 munge_column_names => {
28 schema => ['any*', of=>['str*', 'code*']],
29 req => 1,
30 },
31 munge => {
32 schema => ['any*', of=>['str*', 'code*']],
33 },
34 munge_hashref => {
35 schema => ['any*', of=>['str*', 'code*']],
36 },
37 },
38 args_rels => {
39 req_one => [qw/munge munge_hashref/],
40 },
41 };
42  
43 1 1;
44 # ABSTRACT: Munge (add, remove, rename, reorder) columns of another tabledata
45  
46 __END__
« TableData/Munge/GroupRows.pm ↑ Summary TableData/Munge/Reverse.pm »