Condition Coverage

lib/Rex/Commands/Host.pm
Criterion Covered Total %
condition 1 15 6.6


and 3 conditions

line !l l&&!r l&&r condition
90 0 0 0 exists $option{'on_change'} and ref $option{'on_change'} eq "CODE"
138 0 0 0 $data->{'ip'} eq $cur_host[0]{'ip'} and join(" ", @{[] unless $data->{'aliases'};}) eq join(" ", @{$cur_host[0]{'aliases'};})
201 0 0 2 @lines and not ref $lines[0]

or 2 conditions

line l !l condition
64 0 0 $option{'ensure'} ||= "present"
123 0 0 $data->{'file'} ||= "/etc/hosts"
166 0 0 $file ||= "/etc/hosts"