Condition Coverage

blib/lib/Net/DRI/Data/Contact/NO.pm
Criterion Covered Total %
condition 0 113 0.0


and 3 conditions

line !l l&&!r l&&r condition
157 0 0 0 $self->name and $self->city
0 0 0 $self->name and $self->city and $self->cc
0 0 0 $self->name and $self->city and $self->cc and $self->email
0 0 0 $self->name and $self->city and $self->cc and $self->email and $self->auth
0 0 0 $self->name and $self->city and $self->cc and $self->email and $self->auth and $self->srid
174 0 0 0 $self->srid and not Net::DRI::Util::xml_is_token($self->srid, 3, 16)
177 0 0 0 $self->name and grep {not Net::DRI::Util::xml_is_normalizedstring($_, 1, 255);} $self->name
181 0 0 0 $self->org and grep {not Net::DRI::Util::xml_is_normalizedstring($_, undef, 255);} $self->org
200 0 0 0 $self->city and grep {not Net::DRI::Util::xml_is_normalizedstring($_, 1, 255);} $self->city
204 0 0 0 $self->sp and grep {not Net::DRI::Util::xml_is_normalizedstring($_, undef, 255);} $self->sp
208 0 0 0 $self->pc and grep {not Net::DRI::Util::xml_is_token($_, undef, 16);} $self->pc
211 0 0 0 $self->cc and grep {not Net::DRI::Util::xml_is_token($_, 2, 2);} $self->cc
215 0 0 0 $self->cc and grep {not exists $Net::DRI::Util::CCA2{uc $_};} $self->cc
218 0 0 0 $self->voice and not Net::DRI::Util::xml_is_token($self->voice, undef, 17)
0 0 0 $self->voice and not Net::DRI::Util::xml_is_token($self->voice, undef, 17) and not $self->voice =~ /^\+[0-9]{1,3}\.[0-9]{1,14}(?:x\d+)?$/mx
222 0 0 0 $self->fax and not Net::DRI::Util::xml_is_token($self->fax, undef, 17)
0 0 0 $self->fax and not Net::DRI::Util::xml_is_token($self->fax, undef, 17) and not $self->fax =~ /^\+[0-9]{1,3}\.[0-9]{1,14}(?:x\d+)?$/mx
226 0 0 0 Net::DRI::Util::xml_is_token($self->email, 1, undef) && 'Email::Valid'->rfc822($self->email)
0 0 0 $self->email and not Net::DRI::Util::xml_is_token($self->email, 1, undef) && 'Email::Valid'->rfc822($self->email)
240 0 0 0 $ra and ref $ra eq 'HASH'
0 0 0 $ra and ref $ra eq 'HASH' and exists $ra->{'pw'}
0 0 0 $ra and ref $ra eq 'HASH' and exists $ra->{'pw'} and not Net::DRI::Util::xml_is_normalizedstring($ra->{'pw'})
244 0 0 0 $t and not $t =~ /^(?:person|organization|role)$/mx
251 0 0 0 $ty and not $ty =~ /^(?:organizationNumber|localIdentity|nationalIdentityNumber|anonymousPersonIdentifier)$/mx
261 0 0 0 $t and not Net::DRI::Util::xml_is_token($t, undef, 17)
0 0 0 $t and not Net::DRI::Util::xml_is_token($t, undef, 17) and not $t =~ /^\+[0-9]{1,3}\.[0-9]{1,14}(?:x\d+)?$/mx
294 0 0 0 Net::DRI::Util::xml_is_token($e, 1, undef) && 'Email::Valid'->rfc822($e)
0 0 0 $e and not Net::DRI::Util::xml_is_token($e, 1, undef) && 'Email::Valid'->rfc822($e)
303 0 0 0 $e and not Net::DRI::Util::xml_is_token($e, 3, 16)
314 0 0 0 $d and ref $d eq 'HASH'
0 0 0 $d and ref $d eq 'HASH' and scalar keys %$d == 1
0 0 0 $d and ref $d eq 'HASH' and scalar keys %$d == 1 and $d->{'mobilePhone'} == 1 || $d->{'mobilePhone'} == 0
334 0 0 0 $a and ref $a eq 'HASH'
0 0 0 $a and ref $a eq 'HASH' and exists $a->{'pw'}

or 2 conditions

line l !l condition
152 0 0 $change ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
193 0 0 0 ref $rs[$i] ne 'ARRAY' or @{$rs[$i];} > 3
0 0 0 ref $rs[$i] ne 'ARRAY' or @{$rs[$i];} > 3 or grep {not Net::DRI::Util::xml_is_normalizedstring($_, undef, 255);} @{$rs[$i];}
314 0 0 0 $d->{'mobilePhone'} == 1 || $d->{'mobilePhone'} == 0