blib/lib/HTML5/DOM/Tree.pm

filter: Statementstmt 58.8% 10 / 17 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 30.0% 3 / 10 Podpod 0.0% 0 / 2 totaltotal 36.1% 13 / 36 CC 3 SCAR 11.3
CC
3
Cov
45%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.0
CRAP 3.1
« blib/lib/HTML5/DOM/Collection.pm ↑ Summary blib/lib/HTML5/DOM/Element.pm »
1 package HTML5::DOM::Tree;
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 use overload
6 0 ▶ '""' => sub { $_[0]->document->html },
Subroutine __ANON__: not called CC=1 SCAR=6.9
7 0 ▶ '@{}' => sub { [$_[0]->document] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
8 0 ▶ 'bool' => sub { 1 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
9 0 ▶ '==' => sub { defined $_[1] && $_[0]->isSameTree($_[1]) },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
defined $_[1] and $_[0]->isSameTree($_[1]) 0 0 0
10 0 ▶ '!=' => sub { !defined $_[1] || !$_[0]->isSameTree($_[1]) },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Condition0%0/3
defined $_[1] && $_[0]->isSameTree($_[1])
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[1] && $_[0]->isSameTree($_[1])
defined $_[1] $_[0]->isSameTree($_[1])
Truth table0%0/3
A && B
A= defined $_[1]B= $_[0]->isSameTree($_[1])
ABresult
0X0
100
111
11 1 ▶ fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub text { shift->document->text(@_) }
Subroutine text: not called CC=1 SCAR=6.9
Pod undocumented
14 0 ▶sub html { shift->document->html(@_) }
Subroutine html: not called CC=1 SCAR=6.9
Pod undocumented
15  
16 1 1;
« blib/lib/HTML5/DOM/Collection.pm ↑ Summary blib/lib/HTML5/DOM/Element.pm »