Condition Coverage

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


and 2 conditions

line l !l condition
78 0 0 scalar(($self->name)[1]) and scalar(($self->city)[1])
0 0 scalar(($self->name)[1]) and scalar(($self->city)[1]) and scalar(($self->cc)[1])

and 3 conditions

line !l l&&!r l&&r condition
78 0 0 0 scalar(($self->name)[1]) and scalar(($self->city)[1]) and scalar(($self->cc)[1]) and $self->email
0 0 0 scalar(($self->name)[1]) and scalar(($self->city)[1]) and scalar(($self->cc)[1]) and $self->email and $self->srid
83 0 0 0 $self->srid and not $self->srid =~ /^\w{1,80}-\w{1,8}$/
84 0 0 0 $self->name and grep {not Net::DRI::Util::xml_is_normalizedstring($_, 1, 255);} $self->name
85 0 0 0 $self->org and grep {not Net::DRI::Util::xml_is_normalizedstring($_, undef, 255);} $self->org
94 0 0 0 $self->city and grep {not Net::DRI::Util::xml_is_normalizedstring($_, 1, 255);} $self->city
95 0 0 0 $self->sp and grep {not Net::DRI::Util::xml_is_normalizedstring($_, undef, 255);} $self->sp
96 0 0 0 $self->pc and grep {not Net::DRI::Util::xml_is_token($_, undef, 16);} $self->pc
97 0 0 0 $self->cc and grep {not Net::DRI::Util::xml_is_token($_, 2, 2);} $self->cc
98 0 0 0 $self->cc and grep {not exists $Net::DRI::Util::CCA2{uc $_};} $self->cc
100 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+)?$/
101 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+)?$/
102 0 0 0 $self->email and not Net::DRI::Util::xml_is_token($self->email, 1, undef)
0 0 0 $self->email and not Net::DRI::Util::xml_is_token($self->email, 1, undef) and not 'Email::Valid'->rfc822($self->email)
118 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
73 0 0 $change ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
91 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];}