blib/lib/Data/FormValidator/Constraints/CreditCard.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 28 | 28 | 100.0 |
line | true | false | branch |
---|---|---|---|
69 | 3 | 4 | if (ref $elem eq 'Regexp') { } |
70 | 2 | 1 | if $type =~ /$elem/ |
73 | 2 | 2 | if $type eq $elem |
98 | 1 | 13 | unless defined $month and defined $year |
100 | 6 | 7 | unless _match_cc_expiry_month($month) |
101 | 4 | 3 | unless _match_cc_expiry_year($year) |
105 | 1 | 2 | if $year == $now[5] + 1900 and $month <= $now[4] + 1 |
113 | 5 | 7 | if ($year < 1900) |
114 | 3 | 2 | $year < 70 ? : |
121 | 3 | 21 | if $val =~ /\D/ |
122 | 4 | 17 | if $val < 1 |
123 | 4 | 13 | if $val > 12 |
130 | 4 | 9 | if $val =~ /\D/ |
132 | 4 | 5 | if $val < $now |