Zest/Author/TABULO/Util/List.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 4 totaltotal 75.7% 25 / 33 CC 2 SCAR 3.7
CC
2
Cov
90%
sort_flat
2.0
uniq_flat
2.0
flat
2.0
CRAP 1.4
« Pod/Weaver/PluginBundle/Author/TABULO.pm ↑ Summary Dist/Zilla/MintingProfile/Author/TABULO.pm »
1  
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Zest::Author::TABULO::Util::List;
6 2 our $VERSION = '1.000014';
7  
8 2 ▶use List::Util qw(uniq);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Exporter::Shiny qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
10 flat
11 sort_flat
12 uniq_flat
13 uniq_sort_flat
14 2 );
15  
16  
17 #region: #== UTILITY FUNCTIONS (EXPORT_OK) ==
18  
19 3 ▶sub uniq_sort_flat { uniq(sort (flat(@_))) }
Subroutine uniq_sort_flat: called CC=1 SCAR=0.0
Pod undocumented
20 0 ▶sub sort_flat { sort (flat(@_)) }
Subroutine sort_flat: not called CC=1 SCAR=6.9
Pod undocumented
21 0 ▶sub uniq_flat { uniq(flat(@_)) }
Subroutine uniq_flat: not called CC=1 SCAR=6.9
Pod undocumented
22 7 ▶sub flat { # flatten our arguments (shallowly; 1-level deep)
Subroutine flat: called CC=2 SCAR=6.9
Pod undocumented
23 map {
24 7 ▶ ref $_ eq 'ARRAY' ? (@$_) : $_
Branch: 1 branch
BranchTrueFalseTotal
ref $_ eq 'ARRAY' ? : 10 37 47
25 } (@_);
26 }
27  
28 #endregion (UTILITY FUNCTIONS)
29  
30 2 1;
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =for :stopwords Tabulo[n]
37  
38 =head1 NAME
39  
40 Zest::Author::TABULO::Util::List - Utility functions used by TABULO's authoring dist
41  
42 =head1 VERSION
43  
44 version 1.000014
45  
46 =for Pod::Coverage flat sort_flat uniq_flat uniq_sort_flat
47  
48 =head1 AUTHORS
49  
50 Tabulo[n] <dev@tabulo.net>
51  
52 =head1 LEGAL
53  
54 This software is copyright (c) 2023 by Tabulo[n].
55  
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58  
59 =cut
60  
61 __END__
« Pod/Weaver/PluginBundle/Author/TABULO.pm ↑ Summary Dist/Zilla/MintingProfile/Author/TABULO.pm »