blib/lib/Iterator/Simple/Locate.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Iterator.xs ↑ Summary
1 # Copyright 2009, 2010, 2011, 2014, 2017, 2018, 2019 Kevin Ryde.
2 #
3 # This file is part of File-Locate-Iterator.
4 #
5 # File-Locate-Iterator is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as published
7 # by the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
9 #
10 # File-Locate-Iterator is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13 # Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with File-Locate-Iterator; see the file COPYING. Failing that, go to
17 # <http://www.gnu.org/licenses/>.
18  
19  
20 package Iterator::Simple::Locate;
21 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use File::Locate::Iterator;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use Iterator::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 1 our $VERSION = 28;
28  
29 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
30 7 my $class = shift;
31 7 my $it = File::Locate::Iterator->new (@_);
32 7 ▶ return Iterator::Simple::iterator (sub { $it->next });
Subroutine __ANON__: called CC=1 SCAR=0.0
33 }
34  
35 1 1;
36 __END__
« Iterator.xs ↑ Summary