Condition Coverage

blib/lib/Business/CreditCard.pm
Criterion Covered Total %
condition 39 54 72.2


and 3 conditions

line !l l&&!r l&&r condition
270 0 0 44 length $number >= 13 || length $number == 8 || length $number == 9 and 0 + $number
286 22 2 5 $number =~ /^62[24-68x][\dx]{13,16}$/o and $Country =~ /^(US|MX|AI|AG|AW|BS|BB|BM|BQ|VG|KY|CW|DM|DO|GD|GP|JM|MQ|MS|BL|KN|LC|VC|MF|SX|TT|TC)$/io
14 8 2 $number =~ /^35(2[89x]|[3-8][\dx]|xx)[\dx]{12,15}$/o and $Country =~ /^(US|PR|VI|MP|PW|GU)$/io
400 0 0 4 length $number >= 13 and 0 + $number

or 3 conditions

line l !l&&r !l&&!r condition
270 43 1 0 length $number >= 13 || length $number == 8 || length $number == 9
279 2 1 38 $number =~ /^5[1-5][\dx]{14}$/o or $number =~ /^2 ( 22[1-9] | 2[3-9][\dx] | [3-6][\dx]{2} | 7[0-1][\dx] | 720 ) [\dx]{12}$/ox
3 0 38 $number =~ /^5[1-5][\dx]{14}$/o or $number =~ /^2 ( 22[1-9] | 2[3-9][\dx] | [3-6][\dx]{2} | 7[0-1][\dx] | 720 ) [\dx]{12}$/ox or $number =~ /^2[2-7]xx[\dx]{12}$/o
286 2 0 34 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o
2 1 33 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o
1 0 33 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o
1 2 31 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o or $number =~ /^60[1x]{2}[\dx]{12,15}$/o
2 1 30 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o or $number =~ /^60[1x]{2}[\dx]{12,15}$/o or $number =~ /^64[4-9x][\dx]{13,16}$/o
3 1 29 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o or $number =~ /^60[1x]{2}[\dx]{12,15}$/o or $number =~ /^64[4-9x][\dx]{13,16}$/o or $number =~ /^65[\dx]{14,17}$/o
2 5 24 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o or $number =~ /^60[1x]{2}[\dx]{12,15}$/o or $number =~ /^64[4-9x][\dx]{13,16}$/o or $number =~ /^65[\dx]{14,17}$/o or $number =~ /^62[24-68x][\dx]{13,16}$/o and $Country =~ /^(US|MX|AI|AG|AW|BS|BB|BM|BQ|VG|KY|CW|DM|DO|GD|GP|JM|MQ|MS|BL|KN|LC|VC|MF|SX|TT|TC)$/io
5 2 22 $number =~ /^30[0-5x][\dx]{13,16}$/o or $number =~ /^309[5x][\dx]{12}$/o or $number =~ /^36[\dx]{12,17}$/o or $number =~ /^3[89][\dx]{14,17}$/o or $number =~ /^60[1x]{2}[\dx]{12,15}$/o or $number =~ /^64[4-9x][\dx]{13,16}$/o or $number =~ /^65[\dx]{14,17}$/o or $number =~ /^62[24-68x][\dx]{13,16}$/o and $Country =~ /^(US|MX|AI|AG|AW|BS|BB|BM|BQ|VG|KY|CW|DM|DO|GD|GP|JM|MQ|MS|BL|KN|LC|VC|MF|SX|TT|TC)$/io or $number =~ /^35(2[89x]|[3-8][\dx]|xx)[\dx]{12,15}$/o and $Country =~ /^(US|PR|VI|MP|PW|GU)$/io
297 0 0 22 $number =~ /^49(03(0[2-9]|3[5-9])|11(0[1-2]|7[4-9]|8[1-2])|36[0-9]{2})[\dx]{10}([\dx]{2,3})?$/o or $number =~ /^564182[\dx]{10}([\dx]{2,3})?$/o
0 0 22 $number =~ /^49(03(0[2-9]|3[5-9])|11(0[1-2]|7[4-9]|8[1-2])|36[0-9]{2})[\dx]{10}([\dx]{2,3})?$/o or $number =~ /^564182[\dx]{10}([\dx]{2,3})?$/o or $number =~ /^6(3(33[0-4][0-9])|759[0-9]{2})[\dx]{10}([\dx]{2,3})?$/o
347 0 0 0 length $number == 8 or length $number == 9