Condition Coverage

lib/Badger/Base.pm
Criterion Covered Total %
condition 69 116 59.4


and 3 conditions

line !l l&&!r l&&r condition
57 195 161 103 @_ && ref $_[0] eq 'HASH'
84 0 0 8 $handlers and @$handlers
113 0 56 2 $handlers and @$handlers
181 58 0 0 &blessed($type) and $type->isa($emod)
201 0 1 2 not @_ and &blessed($info)
1 0 2 not @_ and &blessed($info) and $info->isa($emod)
1 1 1 not @_ and &blessed($info) and $info->isa($emod) and $info->type eq $type
206 2 0 0 @_ && ref $_[0] eq 'HASH'
261 0 47 3 $self->{'config'} && $self->{'config'}{'throws'}
289 0 55 0 $self->{'config'} && $self->{'config'}{'exception'}
304 1 0 2 ref $self and &reftype($self) eq "HASH"
322 0 1 1873 $self && &reftype($self)
326 0 1 1873 $self and $ref
1 0 1873 $self and $ref and $ref eq "HASH"
1 1872 1 $self and $ref and $ref eq "HASH" and $self->{'messages'}
401 8 0 61 ref $self and &reftype($self) eq "HASH"
480 0 8 2 @args == 1 and not $args[0]

or 2 conditions

line l !l condition
94 63 8 &reftype($self) || ''
130 37 0 &reftype($self) || ''
149 2 0 &reftype($self) || ''
159 27 0 &reftype($self) || ''
245 52 13 &reftype($self) || ''
272 55 6 &reftype($self) || ''
466 3 1 $self->can($handler) || (return $self->fatal("Invalid on_$type method: $handler"))

or 3 conditions

line l !l&&r !l&&!r condition
58 0 459 0 ref $class || $class
93 63 8 0 ref $self || $self
129 37 0 0 ref $self || $self
148 2 0 0 ref $self || $self
158 27 0 0 ref $self || $self
261 1 3 47 $self->{'THROWS'} ||= $self->{'config'} && $self->{'config'}{'throws'}
265 17 48 0 $throws || $class->any_var('THROWS') || $class->id
289 0 0 55 $self->{'EXCEPTION'} ||= $self->{'config'} && $self->{'config'}{'exception'}
291 0 61 0 $emod || class($self)->any_var('EXCEPTION')
297 2 1 0 ref $self || $self
320 1874 0 0 shift() || $self->fatal('message() called without format name')
331 1873 0 0 class($self)->hash_value('MESSAGES', $name) || $self->fatal("message() called with invalid message type: $name")
375 10 0 0 ref $self || $self
405 1 39 0 $self->{'config'}{$on_event} || $class->list_vars($ON_EVENT)
21 40 0 $self->{$ON_EVENT} ||= $self->{'config'}{$on_event} || $class->list_vars($ON_EVENT)
480 0 2 8 not @args or @args == 1 and not $args[0]
497 0 286 0 ref $class || $class