| 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
| |||||||||||
| 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__ | ||||||||||