| blib/lib/Finance/Instrument/Futures.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 8 | 12 | 66.6 |
| line | true | false | branch |
|---|---|---|---|
| 31 | 2 | 0 | ref $datetime ? : |
| 35 | 2 | 1 | if ($date le $$curr{'last_trading_day'} and $date gt $$prev{'last_trading_day'}) |
| 42 | 2 | 1 | unless ($month) |
| 43 | 0 | 2 | unless ($year, $month) = $year =~ /(\d\d\d\d)(\d\d)/ |
| 59 | 0 | 1 | if $month_idx < 0 |
| 60 | 1 | 0 | if ($month_idx == 0) |