Branch Coverage

blib/lib/HTML5/DOM/Collection.pm
Criterion Covered Total %
branch 25 26 96.1


line true false branch
14 0 29 if not $nodes or ref $nodes ne 'ARRAY'
28 1 2 unless $callback
29 1 1 if _is_regexp($callback)
41 7 10 if $offset < 0
44 6 11 if $offset < 0 or $offset >= scalar(@$self) - 1
47 4 7 unless defined $length
53 3 8 if $length < 0
56 5 6 if $length > $max_length
59 1 10 if $length <= 0
87 4 1 defined $id ? :
1 1 if $callback
93 1 1 if _is_regexp($callback)
109 1 5 if (ref $callback eq 'CODE') { }