Branch Coverage

blib/lib/Polycom/Contact/Directory.pm
Criterion Covered Total %
branch 25 56 44.6


line true false branch
29 3 4 if ($file)
33 3 0 if ($file =~ m[]) { }
0 0 elsif (ref $file) { }
0 0 elsif (-e $file) { }
53 2 1 unless (utf8::is_utf8($xml))
75 49 28 unless defined $_
116 0 9 UNIVERSAL::isa($c, 'Polycom::Contact') ? :
129 0 9 unless defined $cond and ref $cond
134 15 0 if defined $$cond{$_}
3 12 if (&List::MoreUtils::all(sub { $$c{$_} eq $$cond{$_} if defined $$cond{$_}; } , keys %{$cond;}))
162 27 81 unless defined $f{$key}
171 9 0 if defined $f{'first_name'}
172 9 0 if defined $f{'last_name'}
173 9 0 if defined $f{'contact'}
174 0 9 if defined $f{'speed_index'}
175 0 9 if defined $f{'label'}
176 0 9 if defined $f{'ring_type'}
177 9 0 if defined $f{'divert'}
178 9 0 if defined $f{'auto_reject'}
179 9 0 if defined $f{'auto_divert'}
180 9 0 if defined $f{'buddy_watching'}
181 9 0 if defined $f{'buddy_block'}
192 0 0 if (not defined $filename or $filename eq '')
212 0 0 unless ($c->is_valid)
218 0 0 if (exists $contact_num{$$c{'contact'}})
225 0 0 if (exists $speed_index{$$c{'speed_index'}})
240 0 0 if $self->count != $other->count
246 0 0 if ($myAll[$i] != $otherAll[$i])