| lib/Egg/Plugin/Banner/Rotate.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 21 | 0.0 |
| line | l | !l | condition |
|---|---|---|---|
| 14 | 0 | 0 | $e->config->{'plugin_banner_rotate'} ||= {} |
| 17 | 0 | 0 | $$c{'extention'} ||= 'yaml' |
| 36 | 0 | 0 | shift() || 'default' |
| 37 | 0 | 0 | $self->e->global->{'banner_rotate'} ||= {} |
| 67 | 0 | 0 | $self->e->global->{'banner_rotate'} || (return undef) |
| 69 | 0 | 0 | shift() || (return undef) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 15 | 0 | 0 | 0 | $$c{'base_dir'} ||= $e->config->{'dir'}{'etc'} . '/banners' |
| 22 | 0 | 0 | 0 | $_[0]{'banner_rotate'} ||= 'Egg::Plugin::Banner::Rotate::handler'->new(@_) |
| 38 | 0 | 0 | 0 | $$cache{$key} ||= do { my $pm = $self->params; my $yaml = "$$pm{'base_dir'}/$key.$$pm{'extention'}"; my $list = [YAML::LoadFile($yaml)]; warn " Banners is not found - $yaml. " unless @$list; +{'num', 0, 'time', time, 'total', scalar @$list, 'banners', $list} } |