Condition Coverage

blib/lib/IO/EPP/Test/Base.pm
Criterion Covered Total %
condition 70 112 62.5


and 2 conditions

line l !l condition
1452 0 3 $dm->{'nss'} and scalar keys %{$$dm{'nss'};}
1459 2 1 $dm->{'hosts'} and scalar keys %{$$dm{'hosts'};}

and 3 conditions

line !l l&&!r l&&r condition
411 1 0 1 $s->data->{'conts'}{$cont{'id'}} and $s->data->{'conts'}{$cont{'id'}}{'reason'} eq 'in use'
444 0 1 0 $f eq 'name' and $act eq 'create'
481 0 0 15 $cont{$t}{'addr'}{'cc'} and length $cont{$t}{'addr'}{'cc'} == 2
491 0 0 10 $f eq 'fax' and $body =~ m[]
499 10 13 1 $f eq 'fax' || $f eq 'voice' and not $c =~ /^\+\d{1,3}\.\d{1,14}$/
13 10 0 $f eq 'email' and not $c =~ /^[0-9a-z\.\-]+\@[0-9a-z\.\-]+$/
531 0 9 1 $cont{'authInfo'} and length $cont{'authInfo'} < 16
534 0 1 8 $cont{'authInfo'} and $cont{'authInfo'} =~ /[A-Z]/
1 0 8 $cont{'authInfo'} and $cont{'authInfo'} =~ /[A-Z]/ and $cont{'authInfo'} =~ /[a-z]/
1 0 8 $cont{'authInfo'} and $cont{'authInfo'} =~ /[A-Z]/ and $cont{'authInfo'} =~ /[a-z]/ and $cont{'authInfo'} =~ /[0-9]/
0 0 8 $cont{'authInfo'} and $cont{'authInfo'} =~ /[A-Z]/ and $cont{'authInfo'} =~ /[a-z]/ and $cont{'authInfo'} =~ /[0-9]/ and $cont{'authInfo'} =~ m[[!\@\$\%*_.:\-=+?#,"'\\/&]]
1183 13 1 4 $reason and not $reason =~ /not permitted/
1307 0 4 1 $pw and length $pw < 16
1310 0 1 3 $pw and $pw =~ /[A-Z]/
1 0 3 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/
1 0 3 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/ and $pw =~ /[0-9]/
0 0 3 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/ and $pw =~ /[0-9]/ and $pw =~ m[[!\@\$\%*_.:\-=+?#,"'\\/&]]
1665 0 0 1 $no_upd and $st eq 'clientUpdateProhibited'
1782 35 1 1 $add{$t} and not $rem{$t}
1786 1 34 1 not $add{$t} and $rem{$t}
1805 0 2 1 $pw and length $pw < 16
1809 0 1 1 $pw and $pw =~ /[A-Z]/
1 0 1 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/
1 0 1 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/ and $pw =~ /[0-9]/
0 0 1 $pw and $pw =~ /[A-Z]/ and $pw =~ /[a-z]/ and $pw =~ /[0-9]/ and $pw =~ m[[!\@\$\%*_.:\-=+?#,"'\\/&]]

or 2 conditions

line l !l condition
130 2 64 $y ||= 0
170 63 0 $cl ||= 'xxxx'
191 20 0 $cl ||= 'xxxx'
201 63 0 $cl ||= 'xxxx'
772 1 0 $s->data->{'nss'}{$ns}{'reason'} || ''
1161 1 1 $s->data->{'doms'}{$dm}{'reason'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
52 47 2 189 not $out_data or $out_data =~ m[]+/>]
249 0 0 49 not $pass or length $pass < 6
499 0 14 10 $f eq 'fax' || $f eq 'voice'
1270 0 0 8 $period < 1 or $period > 9
2087 2 0 4 $op eq 'cancel' or $op eq 'reject'
2 0 4 $op eq 'cancel' or $op eq 'reject' or $op eq 'approve'
2098 0 1 0 $dm->{'owner'} eq $obj->{'user'} or $dm->{'transfer'}{'new_owner'} eq $obj->{'user'}