Condition Coverage

blib/lib/Polycom/Contact.pm
Criterion Covered Total %
condition 8 54 14.8


and 3 conditions

line !l l&&!r l&&r condition
59 0 0 0 defined $self->first_name and length $self->first_name > 40
65 0 0 0 defined $self->last_name and length $self->last_name > 40
77 0 0 0 defined $self->speed_index and !($self->speed_index =~ /^\d*$/) || $self->speed_index < 1 || $self->speed_index > 9999
86 0 0 0 defined $self->ring_type and !($self->ring_type =~ /^\d*$/) || $self->ring_type < 1 || $self->ring_type > 21
95 0 0 0 defined $self->auto_divert and not $self->auto_divert =~ /^[01]?$/
101 0 0 0 defined $self->auto_reject and not $self->auto_reject =~ /^[01]?$/
107 0 0 0 defined $self->buddy_watching and not $self->buddy_watching =~ /^[01]?$/
113 0 0 0 defined $self->buddy_block and not $self->buddy_block =~ /^[01]?$/

or 2 conditions

line l !l condition
29 0 19 $args{'divert'} || 0
0 19 $args{'auto_reject'} || 0
0 19 $args{'auto_divert'} || 0
0 19 $args{'buddy_watching'} || 0
0 19 $args{'buddy_block'} || 0
16 3 $args{'in_storage'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
44 0 0 19 not defined $$self{'contact'} or $$self{'contact'} eq ''
71 0 0 0 not defined $self->contact or $self->contact eq ''
77 0 0 0 !($self->speed_index =~ /^\d*$/) || $self->speed_index < 1 || $self->speed_index > 9999
86 0 0 0 !($self->ring_type =~ /^\d*$/) || $self->ring_type < 1 || $self->ring_type > 21
155 0 0 0 $attr eq 'auto_reject' or $attr eq 'auto_divert'
0 0 0 $attr eq 'auto_reject' or $attr eq 'auto_divert' or $attr eq 'buddy_watching'