Branch Coverage

blib/lib/Footprintless/Localhost.pm
Criterion Covered Total %
branch 13 20 65.0


line true false branch
21 171 0 if ($alias)
33 0 36 exists $options{'empty'} ? :
37 34 2 unless $options{'none'}
39 1 35 if ($options{'aliases'})
49 48 0 if ($hostname) { }
75 33 0 unless $etc_hosts_file
77 33 0 unless ($self->{'loaded'}{'/etc/hosts'})
84 34 194 if ($line =~ /^$loopback_ipv4_regex\s+(\S.*?)\s*$/)
99 33 0 unless ($self->{'loaded'}{'hostfqdn'})
114 33 0 unless ($self->{'loaded'}{'hostname'})