| 1 | package Flux::Mapper::Role::Easy; | ||||||||||
| 2 | { | ||||||||||
| 3 | 7 | $Flux::Mapper::Role::Easy::VERSION = '1.03'; | |||||||||
| 4 | } | ||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: simplified version of Flux::Mapper role | ||||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | 7 | ▶ | use Moo::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 7 | with 'Flux::Mapper'; | |||||||||
| 11 | |||||||||||
| 12 | 2 | ▶ | sub write_chunk { | ||||||||
|
Subroutine
write_chunk: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 13 | 2 | my ($self, $chunk) = @_; | |||||||||
| 14 | 2 | ▶ | die "write_chunk method expects arrayref, you specified: '$chunk'" unless ref($chunk) eq 'ARRAY'; # can chunks be blessed into something? | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 2 | my @result_chunk; | |||||||||
| 16 | 2 | for my $item (@$chunk) { | |||||||||
| 17 | 4 | push @result_chunk, $self->write($item); | |||||||||
| 18 | } | ||||||||||
| 19 | 2 | return \@result_chunk; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | sub commit { | ||||||||
|
Subroutine
commit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 23 | 0 | return (); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 7 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||