Condition Coverage

blib/lib/Finance/Calendar.pm
Criterion Covered Total %
condition 49 87 56.3


and 3 conditions

line !l l&&!r l&&r condition
127 54 15 74 @{$exchange->trading_days_list;}[$really_when->day_of_week] && !$self->is_holiday_for($exchange->symbol, $really_when)
156 5 0 8 not $date_behind and $counter < 10
187 17 0 30 not $date_next and $counter <= 11
218 0 34 1 $open_ti and $next_day->epoch + $open_ti->seconds <= $date->epoch
573 5 0 17 $day_start != $start_epoch and $start_epoch < $end_epoch
577 1 11 10 $day_end != $end_epoch and $start_epoch < $end_epoch
608 0 0 2 not $self->closes_early_on($exchange, $possible) || $self->opens_late_on($exchange, $possible) and $self->trades_on($exchange, $possible)
711 1 2 2 $when->epoch >= $break_interval->[0]->epoch and $when->epoch <= $break_interval->[1]->epoch
763 81 0 0 $extended_trading_breaks && $when->day_of_week == $extended_trading_breaks
856 1 0 1 $date->is_after($close) and $date->is_before($open)
0 0 1 $date->is_before($close) and $date->is_after($date->truncate_to_day)
901 9 8 0 $next_open and not $date->is_before($next_open)
923 0 3 4 $close and not $when->is_before($close)
0 0 0 $when->is_after($open) and $when->is_before($close)
951 0 5 3 $close and not $when->is_before($close)
974 3 0 1 $when->is_before($int_open) and $when->is_same_as($current_open) || $when->is_after($current_open)
0 0 3 $when->is_after($int_open) and $when->is_before($int_close)
0 0 0 $when->is_after($int_close) and $when->is_before($next_open)

or 3 conditions

line l !l&&r !l&&!r condition
316 1 2 14 not $opening or $self->_is_in_trading_break($exchange, $date)
317 4 7 3 $date->is_before($opening) or $date->is_after($self->closing_on($exchange, $date))
365 9 29 13 $self->opens_late_on($exchange, $when) // $self->get_exchange_open_times($exchange, $when, "daily_open")
386 10 22 4 $self->closes_early_on($exchange, $when) // $self->get_exchange_open_times($exchange, $when, "daily_close")
608 0 0 2 $self->closes_early_on($exchange, $possible) || $self->opens_late_on($exchange, $possible)
923 0 0 0 $when->is_same_as($open) or $when->is_after($open) and $when->is_before($close)
0 0 0 $when->is_same_as($open) or $when->is_after($open) and $when->is_before($close) or $when->is_same_same($close)
974 1 0 0 $when->is_same_as($current_open) || $when->is_after($current_open)
0 3 0 $when->is_same_as($int_open) or $when->is_after($int_open) and $when->is_before($int_close)
3 0 0 $when->is_same_as($int_open) or $when->is_after($int_open) and $when->is_before($int_close) or $when->is_same_as($int_close)
1022 1 0 22 $cached_seconds_for_interval{$cache_key} //= do {