blib/lib/Iterator/Flex/Role/Exhaustion/ImportedReturn.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 93.7% 30 / 32 CC 1 SCAR 1.2
CC
1
Cov
96%
imported_sentinel
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/Iterator/Flex/Role/Rewind/Method.pm ↑ Summary Build »
1 package Iterator::Flex::Role::Exhaustion::ImportedReturn;
2  
3 # ABSTRACT: Imported iterator returns a sentinel
4  
5 15 ▶use v5.28;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 15 our $VERSION = '0.33';
10  
11 15 ▶use Iterator::Flex::Utils qw( :default REG_GENERAL REG_GP_INPUT_EXHAUSTION );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 15 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 15 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 15 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19  
20  
21  
22  
23  
24  
25  
26 ▶sub imported_sentinel ( $self ) {
Subroutine imported_sentinel: not called CC=1 SCAR=6.9
Pod documented
27 0 return $REGISTRY{ refaddr $self }[REG_GENERAL][REG_GP_INPUT_EXHAUSTION][1];
28 }
29  
30 15 1;
31  
32 #
33 # This file is part of Iterator-Flex
34 #
35 # This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
36 #
37 # This is free software, licensed under:
38 #
39 # The GNU General Public License, Version 3, June 2007
40 #
41  
42 __END__
« blib/lib/Iterator/Flex/Role/Rewind/Method.pm ↑ Summary Build »