Condition Coverage

blib/lib/Finance/Instrument/Futures.pm
Criterion Covered Total %
condition 4 10 40.0


and 3 conditions

line !l l&&!r l&&r condition
35 0 1 2 $date le $$curr{'last_trading_day'} and $date gt $$prev{'last_trading_day'}

or 2 conditions

line l !l condition
26 0 0 shift() || 2
47 3 0 $self->contract_calendar->{$expiry} || {}

or 3 conditions

line l !l&&r !l&&!r condition
48 0 3 0 $self->domain->get($self->code . '_' . $expiry) || 'Finance::Instrument::FuturesContract'->new('futures', $self, 'expiry_year', int $year, 'expiry_month', int $month, 'domain', $self->domain, %$curr)