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 5     5   2547 use strict;
  5         15  
  5         141  
3              
4 5     5   24 use vars qw($VERSION);
  5         7  
  5         275  
5              
6 5     5   27 use warnings;
  5         9  
  5         109  
7 5     5   23 no warnings;
  5         14  
  5         582  
8              
9             $VERSION = '1.144';
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<< >>
37              
38             =head1 COPYRIGHT AND LICENSE
39              
40             Copyright © 2002-2021, 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 4     4 0 323 sub new { bless [qw(a b c d e f)], shift }
48 20     20   67 sub __more__ { scalar @{ $_[0] } }
  20         53  
49 18     18   2553 sub __next__ { shift @{ $_[0] } }
  18         55  
50              
51             1;