Condition Coverage

blib/lib/DateTimeX/Moment.pm
Criterion Covered Total %
condition 58 100 58.0


and 3 conditions

line !l l&&!r l&&r condition
98 823 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 24 2 1 $month == 2 and _is_leap_year($year)
251 26 0 0 @_ == 1 && ref $_[0] eq 'HASH'
589 0 2 75 _isa_datetime_compareble($lhs) and _isa_datetime_compareble($rhs)
593 2 0 73 not $consistent and $lhs->can('time_zone')
2 2 71 not $consistent and $lhs->can('time_zone') and $rhs->can('time_zone')
597 56 15 0 $is_floating1 and not $is_floating2
53 15 3 $is_floating2 and not $is_floating1
605 0 2 73 $lhs->isa('DateTimeX::Moment') and $rhs->isa('DateTimeX::Moment')
621 41 0 0 @_ == 1 && ref $_[0] eq 'HASH'
696 656 0 0 @_ == 1 and _isa_duration($_[0])
698 656 0 0 @_ == 1 && ref $_[0] eq 'HASH'
703 153 503 0 exists $args{'years'} and exists $args{'months'}
876 40 0 0 @_ == 1 && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
850 0 41 $1 || ''
851 0 7 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
101 18 805 0 delete $args{'locale'} || $class->_default_locale
102 2 0 821 delete $args{'formatter'} || $class->_default_formatter
103 726 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
402 523 0 2 !defined($_[0]) || $_[0] eq '-'
409 1 0 2 !defined($_[0]) || $_[0] eq '-'
416 1 0 2 !defined($_[0]) || $_[0] eq '-'
423 2 0 2 !defined($_[0]) || $_[0] eq ':'