blib/lib/HTML5/DOM/Element.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 74.0% 20 / 27 SCAR 7.1
CC
2
Cov
79%
className
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/HTML5/DOM/CSS/Selector.pm ↑ Summary blib/lib/HTML5/DOM/AsyncResult.pm »
1 package HTML5::DOM::Element;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use HTML5::DOM::Node;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use HTML5::DOM::TokenList;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our @ISA = ("HTML5::DOM::Node");
9  
10 sub classList {
11 17 ▶ return HTML5::DOM::TokenList->new($_[0], "class");
Subroutine classList: called CC=1 SCAR=0.0
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 3 1;
« blib/lib/HTML5/DOM/CSS/Selector.pm ↑ Summary blib/lib/HTML5/DOM/AsyncResult.pm »