Branch Coverage

blib/lib/Mojo/DOM/Role/Analyzer.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
32 1 1 if ($dir ne 'up')
37 1 1 if ($dir eq 'up') { }
43 0 2 unless $found->size
50 0 2 if (@selectors == 1)
55 1 1 if ($dir eq 'up') { }
82 2 3 if (ref $_[1] and ref $_[2]) { }
88 1 2 if (not $_[1] || $_[2]) { }
2 0 elsif ($_[1] and not ref $_[1] and not $_[2]) { }
104 4 8 if not $seg2 or $seg ne $seg2
123 32 15 if $p1 eq $p2
127 0 15 if $p1_num eq $p2_num
154 5 9 if $depth > $deepest_depth
171 16 9 $sel2 =~ /^\Q$sel1\E/ ? :
176 2 14 if (not $_[2]) { }
179 0 2 if (ref $_[0]) { }
196 0 1 unless $selector
205 1 1 if $sn->{'all_tags_have_same_depth'}
228 0 2 unless $selector
232 1 1 $top_level_selector ? :
234 4 2 unless $size
243 1 3 if ($depth_tracker and $depth != $depth_tracker)