blib/lib/PMLTQ/Relation/Iterator.pm

filter: Statementstmt 70.8% 17 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 38.4% 5 / 13 Podpod 0.0% 0 / 8 totaltotal 46.8% 22 / 47 CC 2 SCAR 6.6
CC
2
Cov
65%
new
6.0
clone
2.0
conditions
2.0
CRAP 1.9
« blib/lib/PMLTQ/Relation/PDT/ALexOrAuxRFIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex.pm »
1 package PMLTQ::Relation::Iterator;
2 45 our $AUTHORITY = 'cpan:MATY';
3 45 $PMLTQ::Relation::Iterator::VERSION = '1.5.0';
4 # ABSTRACT: Base Iterator class
5  
6 45 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 45 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 45 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 45 ▶use constant CONDITIONS=>0;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 45 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub new {
14 0 ▶ my ($class,$conditions)=@_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
15 0 ▶ croak "usage: $class->new(sub{...})" unless ref($conditions) eq 'CODE';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $conditions eq "CODE" 0 0 0
16 0 return bless [$conditions],$class;
17 }
18  
19 sub clone {
20 0 ▶ my ($self)=@_;
Subroutine clone: not called CC=1 SCAR=6.9
Pod undocumented
21 0 return bless [$self->[CONDITIONS]], ref($self);
22 }
23  
24 0 ▶sub conditions { return $_[0]->[CONDITIONS]; }
Subroutine conditions: not called CC=1 SCAR=6.9
Pod undocumented
25  
26 0 ▶sub set_conditions { $_[0]->[CONDITIONS]=$_[1]; }
Subroutine set_conditions: not called CC=1 SCAR=6.9
Pod undocumented
27  
28 ▶sub start {}
Subroutine start: not called CC=1 SCAR=0.0
Pod undocumented
29  
30 ▶sub next {}
Subroutine next: not called CC=1 SCAR=0.0
Pod undocumented
31  
32 ▶sub node {}
Subroutine node: not called CC=1 SCAR=0.0
Pod undocumented
33  
34 ▶sub reset {}
Subroutine reset: not called CC=1 SCAR=0.0
Pod undocumented
35  
36 45 1; # End of PMLTQ::Relation::Iterator
37  
38 __END__
« blib/lib/PMLTQ/Relation/PDT/ALexOrAuxRFIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex.pm »