Branch Coverage

blib/lib/Cinnamon/Context.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
41 1 13 if ($opts{'info'})
59 0 13 unless (defined $hosts)
63 2 11 unless (defined $task)
73 0 11 unless $result
74 3 8 if ($$result{$key}{'error'}) { }
113 0 16 unless my $role = $self->get_role($name)
128 31 3 unless (ref $code eq 'HASH')
157 3 48 if ref $value eq 'CODE'
169 1 2 unless my $task = $self->get_task($task_name)
181 3 3 if ($$opts{'sudo'})
190 0 6 if ($$result{'has_error'})
200 2 4 if (my $remote = $self->stash->{'current_remote'}) { }
231 3 0 if defined $password