blib/lib/HTML5/DOM/Element.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 66.6% 18 / 27 CC 2 SCAR 9.4
CC
2
Cov
74%
className
6.0
classList
2.0
BEGIN
1.0
CRAP 2.6
« blib/lib/HTML5/DOM/Tree.pm ↑ Summary blib/lib/HTML5/DOM/CSS/Selector.pm »
1 package HTML5::DOM::Element;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use HTML5::DOM::Node;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use HTML5::DOM::TokenList;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our @ISA = ("HTML5::DOM::Node");
9  
10 sub classList {
11 0 ▶ return HTML5::DOM::TokenList->new($_[0], "class");
Subroutine classList: not called CC=1 SCAR=6.9
Pod undocumented
12 }
13  
14 sub className {
15 0 ▶ my $class = $_[0]->attr("class");
Subroutine className: not called CC=2 SCAR=17.9
Pod undocumented
16 0 ▶ return defined $class ? $class : "";
Branch: 1 branch
BranchTrueFalseTotal
defined $class ? : 0 0 0
17 }
18  
19 1 1;
« blib/lib/HTML5/DOM/Tree.pm ↑ Summary blib/lib/HTML5/DOM/CSS/Selector.pm »