File Coverage

blib/lib/Object/Iterate/Tester.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 24 25 96.0


line stmt bran cond sub pod time code
1             package Object::Iterate::Tester;
2 6     6   606084 use strict;
  6         13  
  6         265  
3              
4 6     6   29 use vars qw($VERSION);
  6         62  
  6         353  
5              
6 6     6   29 use warnings;
  6         10  
  6         290  
7 6     6   25 no warnings;
  6         11  
  6         791  
8              
9             $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             https://github.com/briandfoy/object-iterate
33              
34             =head1 AUTHOR
35              
36             brian d foy, C<< >>
37              
38             =head1 COPYRIGHT AND LICENSE
39              
40             Copyright © 2002-2026, brian d foy . 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 9     9 0 197526 sub new { bless [qw(a b c d e f)], shift }
48 41     41   120 sub __more__ { scalar @{ $_[0] } }
  41         96  
49 36     36   2147 sub __next__ { shift @{ $_[0] } }
  36         116  
50              
51             1;