lib/FP/List/t.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod n/a totaltotal 100% 45 / 45 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Chj/singlequote/t.pm ↑ Summary lib/FP/Repl/Dependencies.pm »
1 #
2 # Copyright (c) 2022-2023 Christian Jaeger, copying@christianjaeger.ch
3 #
4 # This is free software, offered under either the same terms as perl 5
5 # or the terms of the Artistic License version 2 or the terms of the
6 # MIT License (Expat version). See the file COPYING.md that came
7 # bundled with this file.
8 #
9 #
10  
11 =head1 NAME
12  
13 FP::List::t
14  
15 =head1 SYNOPSIS
16  
17 =head1 DESCRIPTION
18  
19 =head1 SEE ALSO
20  
21 =head1 NOTE
22  
23 This is alpha software! Read the status section in the package README
24 or on the L<website|http://functional-perl.org/>.
25  
26 =cut
27  
28  
29 package FP::List::t;
30 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 1 ▶use warnings FATAL => 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
34 #use experimental 'signatures';
35  
36 1 ▶use FP::List;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 1 ▶use FP::PureArray;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶use Chj::TEST;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 ▶use FP::Predicates qw(is_even);
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 1 ▶TEST { list(5, 7, 8, 9, 11, 13, 12, 10)->split(\&is_even) }
Subroutine __ANON__: called CC=1 SCAR=0.0
42 1 list(purearray(5, 7), purearray(9, 11, 13), purearray());
43 1 ▶TEST { list(5, 7, 8, 9, 11, 13, 12, 10)->split(\&is_even, 1) }
Subroutine __ANON__: called CC=1 SCAR=0.0
44 1 list(purearray(5, 7, 8), purearray(9, 11, 13, 12), purearray(10));
45 1 ▶TEST { list(12, 10, 11)->split(\&is_even) }
Subroutine __ANON__: called CC=1 SCAR=0.0
46 1 list(purearray(), purearray(), purearray(11));
47 1 ▶TEST { list(12, 10)->split(\&is_even) }
Subroutine __ANON__: called CC=1 SCAR=0.0
48 1 list(purearray(), purearray());
49  
50  
51 1 1
« lib/Chj/singlequote/t.pm ↑ Summary lib/FP/Repl/Dependencies.pm »