Branch Coverage

lib/CGI/ValidOp/Check/demographics.pm
Criterion Covered Total %
branch 11 12 91.6


line true false branch
18 1 124 unless defined $value
20 2 122 unless $value =~ /^\w{2}$/
21 118 4 if $value =~ qr/^(al|ak|as|az|ar|ca|co|ct|de|dc|fm|fl|ga|gu|hi|id|il|in|ia|ks|ky|la|me|mh|md|ma|mi|mn|ms|mo|mt|ne|nv|nh|nj|nm|ny|nc|nd|mp|oh|ok|or|pw|pa|pr|ri|sc|sd|tn|tx|ut|vt|vi|va|wa|wv|wi|wy)$/i
31 0 12 unless defined $value
32 8 4 if ($value =~ /(^\d{3}-?\d{2}-?\d{4}$)/)
34 4 4 if $constraint and $constraint eq 'integer'