blib/lib/Hostfile/Manager.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 20 | 90.0 |
line | true | false | branch |
---|---|---|---|
122 | 10 | 4 | unless defined $filename |
124 | 1 | 13 | unless (-e $filename) |
143 | 0 | 1 | unless (not -e $filename and -w dirname($filename) or -w $filename) |
171 | 1 | 3 | unless my $fragment = $self->get_fragment($fragment_name) |
173 | 1 | 2 | if $self->fragment_enabled($fragment_name) |
203 | 1 | 1 | if ($self->fragment_enabled($fragment_name)) { } |
227 | 8 | 16 | if -d $_ |
244 | 0 | 16 | unless (-e $filename) |
281 | 1 | 1 | $found eq $fragment_contents ? : |
2 | 1 | $found ? : |