| lib/Badger/App.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 1 | 25 | 4.0 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 76 | 0 | 0 | 0 | @_ == 1 && ref $_[0] eq 'ARRAY' | 
| 89 | 0 | 0 | 0 | $arg =~ /^[\w\.]+$/ and $app = $self->app($arg) | 
| line | l | !l | condition | 
|---|---|---|---|
| 52 | 0 | 1 | $config->{'app'} || {} | 
| 77 | 0 | 0 | $self->{'app'}{'options'} ||= {} | 
| 95 | 0 | 0 | $schema->item($1) || (return $self->error_msg('invalid', 'argument', $arg)) | 
| 221 | 0 | 0 | join("\n ", grep({length $_ if defined $_;} map({$_->summary;} $self->{'schema'}->items))) || (return '') | 
| 231 | 0 | 0 | $self->{$type} || $self->{'config'}{$type} || $self->class->any_var(uc $type) || (return '') | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 145 | 0 | 0 | 0 | $self->{'apps'} ||= do { my $class = $self->class; my $apps = $class->hash_vars("APPS", $self->{'config'}{'apps'}); my $path = $class->list_vars("APP_PATH", $self->{'config'}{'app_path'}); push @$path, $self->class->name unless @$path; '???'; $self->APPS->new("path", $path, "apps", $apps) } | 
| 181 | 0 | 0 | 0 | $self->{'reporter'} ||= class($self->REPORTER)->load->instance($config) | 
| 235 | 0 | 0 | 0 | $title ||= ucfirst $type |