Branch Coverage

blib/lib/MMM/Utils.pm
Criterion Covered Total %
branch 16 54 29.6


line true false branch
30 4 5 if ($val =~ /^(yes|true|on|\d+)$/i and $val ne 0) { }
57 4 0 $second1 <= $second2 ? :
63 7 5 unless $_
67 0 0 $D_y > 1 ? :
0 4 $D_y ? :
0 0 $D_m > 1 ? :
0 4 $D_m ? :
1 2 $D_d > 1 ? :
3 1 $D_d ? :
81 0 0 if (my($n, $u) = $v =~ /^(\d+)(\D)?/)
83 0 0 if /m/
84 0 0 if /h/
85 0 0 if /d/
86 0 0 if /w/
106 0 0 if ($user and $> == 0 || $< == 0)
108 0 0 if ($user =~ /^\d+$/) { }
111 0 0 unless (scalar @uinfo)
117 0 0 if (scalar @uinfo) { }
125 0 2 if ($group)
126 0 0 if ($group =~ /^\d+$/) { }
130 0 0 if (scalar @ginfo) { }
140 0 2 unless (defined $ogid)
143 0 2 unless (defined $ouid)
155 0 2 if (defined $gid and $) != $gid)
157 0 0 if ($) != $gid)
161 0 2 if (defined $uid and $> != $uid)
163 0 0 if ($> != $uid)