Condition Coverage

blib/lib/DateTimeX/Moment.pm
Criterion Covered Total %
condition 52 91 57.1


and 3 conditions

line !l l&&!r l&&r condition
98 761 0 0 @_ == 1 && ref $_[0] eq 'HASH'
118 20 0 0 @_ == 1 && ref $_[0] eq 'HASH'
141 7 0 0 @_ == 1 && ref $_[0] eq 'HASH'
187 19 0 0 @_ == 1 && ref $_[0] eq 'HASH'
220 28 0 0 @_ == 1 && ref $_[0] eq 'HASH'
237 31 4 1 $month == 2 and _is_leap_year($year)
251 26 0 0 @_ == 1 && ref $_[0] eq 'HASH'
556 0 52 0 _isa_datetime_compareble($lhs) and _isa_datetime_compareble($rhs)
560 2 0 48 not $consistent and $lhs->can('time_zone')
2 2 46 not $consistent and $lhs->can('time_zone') and $rhs->can('time_zone')
564 33 13 0 $is_floating1 and not $is_floating2
30 13 3 $is_floating2 and not $is_floating1
572 0 2 48 $lhs->isa('DateTimeX::Moment') and $rhs->isa('DateTimeX::Moment')
588 81 0 0 @_ == 1 && ref $_[0] eq 'HASH'
621 647 0 0 @_ == 1 and _isa_duration($_[0])
623 647 0 0 @_ == 1 && ref $_[0] eq 'HASH'
628 144 503 0 exists $args{'years'} and exists $args{'months'}
792 69 0 0 @_ == 1 && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
741 0 41 $1 || ''
742 0 7 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
101 18 743 0 delete $args{'locale'} || $class->_default_locale
102 2 0 759 delete $args{'formatter'} || $class->_default_formatter
103 664 97 0 delete $args{'time_zone'} || $class->_default_time_zone
121 3 17 0 delete $args{'locale'} || $class->_default_locale
122 0 0 20 delete $args{'formatter'} || $class->_default_formatter
146 1 6 0 delete $args{'locale'} || $class->_default_locale
147 1 0 6 delete $args{'formatter'} || $class->_default_formatter
193 1 18 0 delete $args{'locale'} || $class->_default_locale
194 1 0 18 delete $args{'formatter'} || $class->_default_formatter
224 0 1 27 0 > $args{'month'} or $args{'month'} > 12
801 9 16 44 $to eq 'week' or $to eq 'local_week'