Scanner/API/Stream.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 79.1% 19 / 24 SCAR 7.0
CC
2
Cov
84%
flatten
2.0
_log
2.0
BEGIN
1.0
CRAP 2.0
« Scanner.pm ↑ Summary
1 package Directory::Scanner::API::Stream;
2 # ABSTRACT: Streaming directory iterator abstract interface
3  
4 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 8 our $VERSION = '0.01';
8 8 our $AUTHORITY = 'cpan:STEVAN';
9  
10 sub head;
11  
12 sub is_done;
13 sub is_closed;
14  
15 sub close;
16 sub next;
17  
18 sub clone; # ( $dir => Path::Tiny )
19  
20 ## ...
21  
22 sub flatten {
23 6 ▶ my ($self) = @_;
Subroutine flatten: called CC=2 SCAR=6.9
Pod undocumented
24 6 my @results;
25 6 ▶ while ( my $next = $self->next ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $next = $self->next) 29 6 35
26 29 push @results => $next;
27 }
28 6 return @results;
29 }
30  
31 ## ...
32  
33 # shhh, I shouldn't do this
34 sub _log {
35 0 ▶ my ($self, @msg) = @_;
Subroutine _log: not called CC=1 SCAR=6.9
36 0 warn( @msg, "\n" );
37 0 return;
38 }
39  
40 8 1;
41  
42 __END__
« Scanner.pm ↑ Summary