File Coverage

blib/lib/HTML5/DOM/Tree.pm
Criterion Covered Total %
statement 10 16 62.5
branch 1 2 50.0
condition 0 3 0.0
subroutine 4 10 40.0
pod 0 2 0.0
total 15 33 45.4


line stmt bran cond sub pod time code
1             package HTML5::DOM::Tree;
2 3     3   20 use strict;
  3         6  
  3         98  
3 3     3   16 use warnings;
  3         5  
  3         518  
4              
5             use overload
6 0     0   0 '""' => sub { $_[0]->document->html },
7 0     0   0 '@{}' => sub { [$_[0]->document] },
8 0     0   0 'bool' => sub { 1 },
9 27 50   27   75180 '==' => sub { defined $_[1] && $_[0]->isSameTree($_[1]) },
10 0   0 0     '!=' => sub { !defined $_[1] || !$_[0]->isSameTree($_[1]) },
11 3     3   19 fallback => 1;
  3         5  
  3         51  
12              
13 0     0 0   sub text { shift->document->text(@_) }
14 0     0 0   sub html { shift->document->html(@_) }
15              
16             1;