Condition Coverage

blib/lib/Business/CCCheck.pm
Criterion Covered Total %
condition 53 63 84.1


and 3 conditions

line !l l&&!r l&&r condition
43 2 1 6 $mon and $yr
62 0 5 2 $zip and $zip =~ /^\d*\.*\d*$/
5 0 2 $zip and $zip =~ /^\d*\.*\d*$/ and $zip ne '.'

or 3 conditions

line l !l&&r !l&&!r condition
44 0 0 6 $mon =~ /\D/ or $yr =~ /\D/
47 0 1 5 $mon < 1 or $mon > 12
66 0 1 6 length $zip < 5 || $zip =~ /[^0-9a-zA-Z\ \-\.]/o
80 0 0 0 $i < $n || !($addr =~ /\n/)
136 2 2 74 $ccn =~ /^51/ or $ccn =~ /^52/
4 2 72 $ccn =~ /^51/ or $ccn =~ /^52/ or $ccn =~ /^53/
4 6 66 $ccn =~ /^51/ or $ccn =~ /^52/ or $ccn =~ /^53/ or $ccn =~ /^54/
8 2 64 $ccn =~ /^51/ or $ccn =~ /^52/ or $ccn =~ /^53/ or $ccn =~ /^54/ or $ccn =~ /^55/
6 2 44 $ccn =~ /^34/ or $ccn =~ /^37/
2 2 40 $ccn =~ /^300/ or $ccn =~ /^301/
4 2 38 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/
4 2 36 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/ or $ccn =~ /^303/
4 2 34 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/ or $ccn =~ /^303/ or $ccn =~ /^304/
4 2 32 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/ or $ccn =~ /^303/ or $ccn =~ /^304/ or $ccn =~ /^305/
4 2 30 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/ or $ccn =~ /^303/ or $ccn =~ /^304/ or $ccn =~ /^305/ or $ccn =~ /^36/
4 6 24 $ccn =~ /^300/ or $ccn =~ /^301/ or $ccn =~ /^302/ or $ccn =~ /^303/ or $ccn =~ /^304/ or $ccn =~ /^305/ or $ccn =~ /^36/ or $ccn =~ /^38/
4 4 0 $ccn =~ /^2131/ or $ccn =~ /^1800/
144 4 4 4 $i == 13 or $i == 16