lib/Flux/Out/Role/Easy.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 2 totaltotal 85.0% 17 / 20 CC 3 SCAR 7.9
CC
3
Cov
93%
write_chunk
3.0
BEGIN
1.0
commit
1.0
CRAP 2.2
« lib/Flux/Mapper/Role/Easy.pm ↑ Summary blib/lib/Flux/Role/Description.pm »
1 package Flux::Out::Role::Easy;
2 {
3 2 $Flux::Out::Role::Easy::VERSION = '1.03';
4 }
5  
6 # ABSTRACT: simplified version of Flux::Out role
7  
8  
9 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 with 'Flux::Out';
11  
12 3 ▶sub write_chunk {
Subroutine write_chunk: called CC=3 SCAR=11.0
Pod undocumented
13 3 my $self = shift;
14 3 my ($chunk, @extra) = @_;
15  
16 3 ▶ die "write_chunk method expects arrayref, you specified: '$chunk'" unless ref($chunk) eq 'ARRAY'; # can chunks be blessed into something?
Branch: 1 branch
BranchTrueFalseTotal
unless ref $chunk eq "ARRAY" 0 3 3
17 3 for my $item (@$chunk) {
18 11 $self->write($item, @extra);
19 }
20 3 return;
21 }
22  
23 6 ▶sub commit {
Subroutine commit: called CC=1 SCAR=0.0
Pod undocumented
24 }
25  
26  
27 2 1;
28  
29 __END__
« lib/Flux/Mapper/Role/Easy.pm ↑ Summary blib/lib/Flux/Role/Description.pm »