Branch Coverage

blib/lib/Setup/Unix/Group.pm
Criterion Covered Total %
branch 34 46 73.9


line true false branch
59 0 249 unless my $group = $args{'group'}
60 0 249 unless $group =~ /$Unix::Passwd::File::re_group/
65 144 105 if ($tx_action eq 'check_state') { }
105 0 elsif ($tx_action eq 'fix_state') { }
67 0 144 unless $res->[0] == 200 or $res->[0] == 404
69 38 106 if $res->[0] == 404
70 106 0 if $dry_run
135 0 259 unless my $group = $args{'group'}
136 0 259 unless $group =~ /$Unix::Passwd::File::re_group/
145 139 120 if ($tx_action eq 'check_state') { }
120 0 elsif ($tx_action eq 'fix_state') { }
147 0 139 unless $res->[0] == 200 or $res->[0] == 404
149 15 124 if ($res->[0] == 200) { }
150 13 2 if (not defined $gid or $gid == $res->[2]{'gid'}) { }
157 0 124 if $dry_run
172 118 2 if ($res->[0] == 200) { }
223 0 56 unless my $group = $args{'group'}
224 0 56 unless $group =~ /$Unix::Passwd::File::re_group/
234 19 37 if ($exists) { }
235 12 7 unless ($should_exist)
246 2 35 if ($should_aexist) { }
32 3 elsif ($should_exist) { }
260 44 10 if (@do) { }