Branch Coverage

blib/lib/Finance/Bank/Natwest/CredentialsProvider/Constant.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
46 6 47 if exists $opts{'customer_no'} and exists $opts{'dob'} || exists $opts{'uid'}
49 47 17 if (exists $opts{'customer_no'})
50 4 43 unless $opts{'customer_no'} =~ /^\d{10}$/
55 8 52 unless exists $opts{'dob'} and exists $opts{'uid'}
58 4 48 unless $opts{'dob'} =~ /^\d{6}$/
60 4 44 unless $opts{'uid'} =~ /^\d{4}$/
63 4 40 unless exists $opts{'password'}
65 2 38 unless exists $opts{'pin'}
68 4 34 if length $opts{'password'} < 6 or length $opts{'password'} > 20
71 4 30 unless $opts{'pin'} =~ /^\d{4}$/
94 2 23 unless ref $chars eq 'ARRAY'
97 2 21 unless ref $digits eq 'ARRAY'