lib/Badger/Timestamp.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 39 | 54 | 72.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
130 | 38 | 0 | 28 | @_ == 1 and defined $_[0] |
249 | 2 | 23 | 0 | scalar keys %$args == 1 and defined $args->{'month'} || defined $args->{'months'} || defined $args->{'year'} || defined $args->{'years'} |
381 | 22 | 20 | 15 | $self->{'etime'} and @_ == 1 |
42 | 10 | 5 | $self->{'etime'} and @_ == 1 and &numlike($_[0]) | |
386 | 0 | 7 | 45 | @_ && &is_object(scalar(ref $self || $self), $_[0]) |
line | l | !l | condition |
---|---|---|---|
168 | 11 | 19 | $config->{$field} || $$config{"${field}s"} || 0 |
188 | 120 | 0 | $_ || 0 |
360 | 2 | 0 | $Badger::Timestamp::SECONDS->{$2} || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
127 | 8 | 63 | 0 | ref $class || $class |
145 | 3 | 18 | 0 | ref $class || $class |
206 | 7 | 3 | 0 | $self->{'etime'} ||= timelocal(@$self{@SMHD}, $self->{'month'} - 1, $self->{'year'} - 1900) |
219 | 0 | 17 | 0 | $self->{'date'} ||= sprintf($DATE_FORMAT, @$self{@YMD}) |
225 | 0 | 13 | 0 | $self->{'time'} ||= sprintf($TIME_FORMAT, @$self{@HMS}) |
249 | 3 | 0 | 17 | defined $args->{'month'} || defined $args->{'months'} || defined $args->{'year'} || defined $args->{'years'} |
426 | 13 | 29 | 0 | shift() || $self->{'month'} |
427 | 4 | 8 | 30 | $month == 4 or $month == 6 |
12 | 1 | 29 | $month == 4 or $month == 6 or $month == 9 | |
9 | 1 | 28 | $month == 4 or $month == 6 or $month == 9 or $month == 11 | |
440 | 10 | 1 | 0 | shift() || $self->{'year'} |