Condition Coverage

lib/Badger/Period.pm
Criterion Covered Total %
condition 21 55 38.1


and 3 conditions

line !l l&&!r l&&r condition
77 2 0 3 @_ == 1 and defined $_[0]
231 10 0 0 $self->{'etime'} and @_ == 1
10 0 0 $self->{'etime'} and @_ == 1 and &numlike($_[0])
236 0 0 10 @_ && &is_object(scalar(ref $self || $self), $_[0])

or 2 conditions

line l !l condition
55 28 0 $class->FIELD_NAMES || (return $class->not_implemented)
115 12 0 $config->{$field} || $$config{"${field}s"} || 0
173 1 0 $self->{'month'} || 1
1 0 $self->{'year'} || 1900
214 0 0 $Badger::Period::SECONDS->{$2} || 1

or 3 conditions

line l !l&&r !l&&!r condition
74 1 4 0 ref $class || $class
92 1 2 0 ref $class || $class
132 3 0 0 shift() || $self
145 4 5 0 shift() || $self
159 0 0 0 $self->{'etime'} ||= timelocal($self->posix_args)
192 0 1 0 $self->{'text'} ||= sprintf($self->text_format, @$self{@fields})
254 0 1 0 shift() || $self->{'month'}
256 0 0 1 $month == 4 or $month == 6
0 0 1 $month == 4 or $month == 6 or $month == 9
0 0 1 $month == 4 or $month == 6 or $month == 9 or $month == 11
270 0 0 0 shift() || $self->{'year'}