Zoom/ArrayStream.pm

filter: Statementstmt 100% 13 / 13 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 SCAR 6.9
CC
2
Cov
100%
_next
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Zoom/MaybeDebug.pm ↑ Summary Zoom/TransformedStream.pm »
1 package HTML::Zoom::ArrayStream;
2  
3 14 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 14 ▶use base qw(HTML::Zoom::StreamBase);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub new {
7 407 ▶ my ($class, $args) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 bless(
9 407 { _zconfig => $args->{zconfig}, _array => [ @{$args->{array}} ] },
10 $class
11 );
12 }
13  
14 sub _next {
15 2195 ▶ my $ary = $_[0]->{_array};
Subroutine _next: called CC=2 SCAR=6.9
16 2195 ▶ return unless @$ary;
Branch: 1 branch
BranchTrueFalseTotal
unless @$ary 403 1792 2195
17 1792 return shift @$ary;
18 }
19  
20 14 1;
« Zoom/MaybeDebug.pm ↑ Summary Zoom/TransformedStream.pm »