Iterate/Tester.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.3% 26 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Iterate.pm ↑ Summary
1 package Object::Iterate::Tester;
2 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 6 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 $VERSION = '1.152';
10  
11 =encoding utf8
12  
13 =head1 NAME
14  
15 Object::Iterate::Tester - test module that uses Object::Iterate
16  
17 =head1 SYNOPSIS
18  
19 use Object::Iterate qw( imap );
20 use Object::Iterate::Tester;
21  
22 my $object = Object::Iterate::Tester->new();
23  
24 my @list = imap { $_ } $object;
25  
26 =head1 DESCRIPTION
27  
28 =head1 SOURCE
29  
30 This module is on Github:
31  
32 http://github.com/briandfoy/Object-Iterate
33  
34 =head1 AUTHOR
35  
36 brian d foy, C<< <bdfoy@cpan.org> >>
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 Copyright © 2002-2025, brian d foy <bdfoy@cpan.org>. All rights reserved.
41  
42 This program is free software; you can redistribute it and/or modify
43 it under the terms of the Artistic License 2.0.
44  
45 =cut
46  
47 4 ▶sub new { bless [qw(a b c d e f)], shift }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
48 20 ▶sub __more__ { scalar @{ $_[0] } }
Subroutine __more__: called CC=1 SCAR=0.0
49 18 ▶sub __next__ { shift @{ $_[0] } }
Subroutine __next__: called CC=1 SCAR=0.0
50  
51 6 1;
« Iterate.pm ↑ Summary