Condition Coverage

blib/lib/Finance/Calendar.pm
Criterion Covered Total %
condition 47 87 54.0


and 3 conditions

line !l l&&!r l&&r condition
127 42 15 39 @{$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 13 0 22 not $date_next and $counter <= 11
218 0 34 1 $open_ti and $next_day->epoch + $open_ti->seconds <= $date->epoch
514 5 0 17 $day_start != $start_epoch and $start_epoch < $end_epoch
518 1 11 10 $day_end != $end_epoch and $start_epoch < $end_epoch
549 0 0 2 not $self->closes_early_on($exchange, $possible) || $self->opens_late_on($exchange, $possible) and $self->trades_on($exchange, $possible)
652 0 0 1 $when->epoch >= $break_interval->[0]->epoch and $when->epoch <= $break_interval->[1]->epoch
704 64 0 0 $extended_trading_breaks && $when->day_of_week == $extended_trading_breaks
794 0 0 0 $date->is_after($close) and $date->is_before($open)
831 7 3 0 $next_open and not $date->is_before($next_open)
853 0 2 2 $close and not $when->is_before($close)
0 0 0 $when->is_after($open) and $when->is_before($close)
881 0 3 1 $close and not $when->is_before($close)
904 2 0 1 $when->is_before($int_open) and $when->is_same_as($current_open) || $when->is_after($current_open)
0 0 2 $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 1 8 not $opening or $self->_is_in_trading_break($exchange, $date)
317 2 3 3 $date->is_before($opening) or $date->is_after($self->closing_on($exchange, $date))
365 1 18 11 $self->opens_late_on($exchange, $when) // $self->get_exchange_open_times($exchange, $when, "daily_open")
386 2 15 4 $self->closes_early_on($exchange, $when) // $self->get_exchange_open_times($exchange, $when, "daily_close")
433 2 2 11 $exchange->symbol eq "FOREX" or $exchange->symbol eq "METAL"
549 0 0 2 $self->closes_early_on($exchange, $possible) || $self->opens_late_on($exchange, $possible)
853 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)
904 1 0 0 $when->is_same_as($current_open) || $when->is_after($current_open)
0 2 0 $when->is_same_as($int_open) or $when->is_after($int_open) and $when->is_before($int_close)
2 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)
952 1 0 22 $cached_seconds_for_interval{$cache_key} //= do {