lib/Flux/Simple.pm

filter: Statementstmt 100% 30 / 30 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 3 / 3 totaltotal 97.7% 43 / 44 CC 2 SCAR 1.9
CC
2
Cov
97%
mapper
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Flux/Storage/Role/ClientList.pm ↑ Summary blib/lib/Flux.pm »
1 package Flux::Simple;
2 {
3 6 $Flux::Simple::VERSION = '1.03';
4 }
5  
6 # ABSTRACT: functional-style stream generators
7  
8  
9 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 6 ▶use Flux::Simple::ArrayIn;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 ▶use Flux::Simple::ArrayOut;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 6 ▶use Flux::Mapper::Anon;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 6 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 6 our @EXPORT_OK = qw( array_in array_out mapper );
18  
19 2 ▶sub array_in {
Subroutine array_in: called CC=1 SCAR=0.0
Pod documented
20 2 my ($arrayref) = @_;
21 2 return Flux::Simple::ArrayIn->new($arrayref);
22 }
23  
24 2 ▶sub array_out {
Subroutine array_out: called CC=1 SCAR=0.0
Pod documented
25 2 my ($arrayref) = @_;
26 2 return Flux::Simple::ArrayOut->new($arrayref);
27 }
28  
29 7 ▶sub mapper(&;&) {
Subroutine mapper: called CC=2 SCAR=7.0
Pod documented
30 7 my ($cb, $commit_cb) = @_;
31  
32 7 my @args = (cb => $cb);
33 7 ▶ push @args, commit_cb => $commit_cb if defined $commit_cb;
Branch: 1 branch
BranchTrueFalseTotal
if defined $commit_cb 0 7 7
34 7 return Flux::Mapper::Anon->new(@args);
35 }
36  
37  
38 6 1;
39  
40 __END__
« lib/Flux/Storage/Role/ClientList.pm ↑ Summary blib/lib/Flux.pm »