FLAT/DFA/Minimal.pm

filter: Statementstmt 100% 24 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 66.6% 2 / 3 totaltotal 94.4% 34 / 36 CC 2 SCAR 2.3
CC
2
Cov
96%
set_equivalence_classes
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« FLAT/Regex/Parser.pm ↑ Summary
1 package FLAT::DFA::Minimal;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use parent qw(FLAT::DFA);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use Storable qw(dclone);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 137 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
9 137 my $pkg = shift;
10 137 my $self = $pkg->SUPER::new(@_);
11 137 $self->{EQUIVALENCE_CLASSES} = [];
12 137 return $self;
13 }
14  
15 5 ▶sub get_equivalence_classes {
Subroutine get_equivalence_classes: called CC=1 SCAR=0.0
Pod documented
16 5 my $self = shift;
17 5 return $self->{EQUIVALENCE_CLASSES};
18 }
19  
20 137 ▶sub set_equivalence_classes {
Subroutine set_equivalence_classes: called CC=2 SCAR=7.0
Pod documented
21 137 my $self = shift;
22 137 my $e_classes = shift;
23 137 ▶ die qq{Must be an array reference\n} if ref $e_classes ne q{ARRAY};
Branch: 1 branch
BranchTrueFalseTotal
if ref $e_classes ne "ARRAY" 0 137 137
24 137 $self->{EQUIVALENCE_CLASSES} = $e_classes;
25 137 return $self->{EQUIVALENCE_CLASSES};
26 }
27  
28 6 1;
29  
30 __END__
« FLAT/Regex/Parser.pm ↑ Summary