Branch Coverage

blib/lib/Config/Model/Backend/Xorg/Write.pm
Criterion Covered Total %
branch 55 64 85.9


line true false branch
25 84 188 if defined $v
30 54 11 if $v
36 61 2 if (defined $v and !defined($b_in) || defined $b_in && $v && $v ne $b_in)
40 61 0 if defined $v and $v
47 1 91 if (defined $v and $v)
54 225 50 if defined $v
60 4 146 if (defined $v and $element_name =~ s/Polarity//) { }
61 3 1 $v eq 'positive' ? :
65 5 141 if defined $v and $v
109 92 1348 unless (defined $cb)
111 0 92 unless $class_name =~ /$k/
118 1425 15 if (defined $cb and ref $cb) { }
0 15 elsif (not defined $cb) { }
133 48 25 if defined $key
135 21 52 if ($element_name eq 'InputDevice')
138 8 34 if defined $core_v and $key eq $core_v
145 62 11 if (@section_lines)
186 4 2 if (defined $rel_loc)
189 1 3 if ($pos_obj->is_element_available('screen_id'))
192 3 1 if ($pos_obj->is_element_available('x'))
207 0 12 if (defined $sce and $sce)
219 2 6 if defined $w and defined $h
225 7 1 if ($next_node->fetch_element_value('use_global_gamma')) { }
227 1 6 if defined $g
243 2 13 if defined $x and defined $y
252 1 14 if defined $x and defined $y
261 1 9 if defined $d and defined $r
293 187 127 if (defined $cb and ref $cb) { }
0 127 elsif (defined $cb and $cb) { }
307 0 0 if @list
316 0 0 if (defined $cb) { }
327 14 1 if @list