| blib/lib/Mojolicious/Plugin/ConfigGeneral.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 14 | 44 | 31.8 |
| line | l | !l | condition |
|---|---|---|---|
| 200 | 0 | 1 | ref $defaults eq "HASH" and scalar keys %$defaults |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 218 | 0 | 0 | 1 | defined $_[0] and length $_[0] |
| 220 | 0 | 0 | 1 | $node and ref $node eq "ARRAY" |
| 0 | 0 | 0 | defined $node and not ref $node | |
| 229 | 0 | 0 | 1 | defined $_[0] and length $_[0] |
| 231 | 0 | 0 | 1 | $node and ref $node eq "ARRAY" |
| 0 | 0 | 0 | defined $node and not ref $node | |
| 240 | 0 | 0 | 1 | defined $_[0] and length $_[0] |
| 242 | 0 | 0 | 1 | $node and ref $node eq "ARRAY" |
| 251 | 0 | 0 | 1 | defined $_[0] and length $_[0] |
| 253 | 0 | 0 | 1 | $node and ref $node eq "HASH" |
| line | l | !l | condition |
|---|---|---|---|
| 170 | 0 | 1 | $args->{'noload'} || 0 |
| 181 | 0 | 1 | $args->{'options'} || $args->{'opts'} || {} |
| 199 | 0 | 1 | $args->{'defaults'} || $args->{'default'} || {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 173 | 1 | 0 | 0 | $args->{'file'} || $ENV{'MOJO_CONFIG'} |
| 174 | 1 | 0 | 0 | $file ||= $app->home->child($app->moniker . '.conf') |