blib/lib/Iterator/Flex/Role/Prev/Closure.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Iterator/Flex/Role/Exhaustion/Return.pm ↑ Summary blib/lib/Iterator/Flex/Role/Prev/Method.pm »
1 package Iterator::Flex::Role::Prev::Closure;
2  
3 # ABSTRACT: Implement prev as a closure stored in the registry
4  
5 33 ▶use v5.28;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 33 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 33 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 33 our $VERSION = '0.33';
10  
11 33 ▶use Iterator::Flex::Utils qw( :default REG_ITERATOR REG_ITER_PREV );
Subroutine BEGIN: called CC=1 SCAR=0.0
12 33 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 33 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 33 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27 ▶sub prev ( $self ) {
Subroutine prev: called CC=1 SCAR=0.0
Pod documented
28 360 $REGISTRY{ refaddr $self }[REG_ITERATOR][REG_ITER_PREV]->( $self );
29 }
30 33 *__prev__ = \&prev;
31  
32 33 1;
33  
34 #
35 # This file is part of Iterator-Flex
36 #
37 # This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
38 #
39 # This is free software, licensed under:
40 #
41 # The GNU General Public License, Version 3, June 2007
42 #
43  
44 __END__
« blib/lib/Iterator/Flex/Role/Exhaustion/Return.pm ↑ Summary blib/lib/Iterator/Flex/Role/Prev/Method.pm »