blib/lib/HTML/ValidationRules.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 7 / 7 Podpod 66.6% 2 / 3 totaltotal 85.2% 29 / 34 CC 2 SCAR 2.7
CC
2
Cov
91%
parser
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/FormValidator/Lite/Constraint/HTML.pm ↑ Summary
1 package HTML::ValidationRules;
2 3 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 our $VERSION = '0.02';
7  
8 3 ▶use HTML::ValidationRules::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 52 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 52 my ($class, %args) = @_;
12 52 bless \%args, $class;
13 }
14  
15 52 ▶sub parser {
Subroutine parser: called CC=2 SCAR=8.1
Pod undocumented
16 52 my ($self) = @_;
17 52 ▶ $self->{parser} ||= HTML::ValidationRules::Parser->new(%$self);
Condition33%1/3
$self->{"parser"} ||= "HTML::ValidationRules::Parser"->new(%$self)
l!l&&r!l&&!r
0520
MC/DC0%0/2
$self->{"parser"} ||= "HTML::ValidationRules::Parser"->new(%$self)
$self->{"parser"} "HTML::ValidationRules::Parser"->new(%$self)
Truth table33%1/3
A ||= B
A= $self->{"parser"}B= "HTML::ValidationRules::Parser"->new(%$self)
ABresult
1X1
011
000
18 }
19  
20 52 ▶sub load_rules {
Subroutine load_rules: called CC=1 SCAR=0.0
Pod documented
21 52 my ($self, %args) = @_;
22 52 $self->parser->load_rules(%args);
23 }
24  
25 3 !!1;
26  
27 __END__
« lib/FormValidator/Lite/Constraint/HTML.pm ↑ Summary