Branch Coverage

blib/lib/POE/Component/Client/Asterisk/Manager.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
25 0 0 if @_ % 2
29 0 0 unless defined $alias and length $alias
58 0 0 if (ref $params{'Options'} eq 'HASH')
85 0 0 if DEBUG()
91 0 0 if ($$heap{'params'}{'Astmanproxy'})
99 0 0 if DEBUG()
106 0 0 if (DEBUG())
111 0 0 if ($$heap{'_logged_in'} == 0 and $$heap{'_connected'} == 0) { }
0 0 elsif ($$heap{'_connected'} == 1 and $$heap{'_logged_in'} == 0) { }
0 0 elsif ($$heap{'_logged_in'} == 1) { }
113 0 0 if ($$input{'acm_version'}) { }
131 0 0 if ($$heap{'server'}) { }
134 0 0 if ($$heap{'requeue_posts'}) { }
143 0 0 if DEBUG()
149 0 0 unless ($$heap{'_connected'} == 1)
158 0 0 if ($$heap{'_logged_in'} == 1)
160 0 0 if DEBUG()
164 0 0 if ($$heap{'_auth_stage'} == 0) { }
0 0 elsif ($$heap{'_auth_stage'} == 1) { }
0 0 elsif ($$heap{'_auth_stage'} == 2) { }
168 0 0 unless ($$input{'Response'} and lc $$input{'Response'} eq 'success')
173 0 0 if ($$input{'Challenge'})
174 0 0 unless (defined $$heap{'params'}{'Password'})
185 0 0 if ($$input{'Message'} and lc $$input{'Message'} eq 'authentication accepted') { }
0 0 elsif ($$input{'Message'} and lc $$input{'Message'} eq 'authentication failed') { }
192 0 0 if (ref $$heap{'queued'} eq 'ARRAY')
210 0 0 unless ref $input
214 0 0 if (ref $$heap{'params'}{'CallBacks'}{$k} eq 'HASH') { }
0 0 elsif ($$heap{'params'}{'CallBacks'}{$k} eq ':all' or $$heap{'params'}{'CallBacks'}{$k} eq 'default') { }
216 0 0 if $match == 1
217 0 0 if (exists $$input{$c} and $$heap{'params'}{'CallBacks'}{$k}{$c} eq $$input{$c}) { }
225 0 0 if ($match == 2)
227 0 0 if DEBUG()
243 0 0 if DEBUG()
248 0 0 if DEBUG()
292 0 0 if ($input) { }
305 0 0 if (DEBUG())
318 0 0 if $$self{'finish'}
321 0 0 if ($$self{'buffer'} =~ s[^(?:Asterisk|Aefirion) Call Manager(?: Proxy)?/(\d+\.\d+\w*)$$self{'crlf'}][]is)
325 0 0 unless $$self{'crlf'}
329 0 0 unless $$self{'buffer'} =~ /$crlf$crlf/s
341 0 0 unless $tmp
343 0 0 if ($line =~ /([\w\-]+)\s*:\s+(.*)/) { }
346 0 0 if DEBUG()
348 0 0 if ($key eq 'Variable') { }
353 0 0 if DEBUG()
363 0 0 keys %$kv ? :
370 0 0 if (ref $$hrefs[$i] eq 'HASH') { }
0 0 elsif (ref $$hrefs[$i] eq 'ARRAY') { }
0 0 elsif (ref $$hrefs[$i] eq 'SCALAR') { }
372 0 0 if DEBUG()
389 0 0 if length $$self{'buffer'}