blib/lib/CPAN/Mini/Inject/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 23 | 26 | 88.4 |
line | true | false | branch |
---|---|---|---|
34 | 18 | 45 | if (@_ == 2) |
35 | 0 | 18 | unless -r $file |
72 | 1 | 18 | unless $cfgfile |
83 | 2 | 1 | defined $ENV{'HOME'} ? : |
91 | 2 | 4 | unless defined $file |
92 | 2 | 2 | unless -r $file |
154 | 6 | 9 | unless $self->config_file |
156 | 15 | 0 | if (-r $self->config_file) |
157 | 0 | 15 | unless open my $fh, "<", $self->config_file |
161 | 2 | 71 | if /^\s*#/ |
162 | 70 | 1 | if /^\s*([^:\s]+)\s*:\s*(.*?)\s*$/ |
163 | 29 | 42 | if defined $required{$1} |
168 | 1 | 14 | if keys %required |