Branch Coverage

blib/lib/Net/XMPP/Client/GTalk.pm
Criterion Covered Total %
branch 0 96 0.0


line true false branch
220 0 0 unless $parameter_hash{'USERNAME'}
221 0 0 unless $parameter_hash{'PASSWORD'}
223 0 0 unless $parameter_hash{'DEBUG'}
226 0 0 unless $parameter_hash{'RESOURCE'}
228 0 0 unless $parameter_hash{'DOMAIN'}
231 0 0 if (defined $parameter_hash{'SetCallBacks'}) { }
237 0 0 if (defined $parameter_hash{'SetCallBacks'}{'message'})
241 0 0 if (defined $parameter_hash{'SetCallBacks'}{'send'})
245 0 0 if (defined $parameter_hash{'SetCallBacks'}{'iq'})
249 0 0 if (defined $parameter_hash{'SetCallBacks'}{'presence'})
253 0 0 if (defined $parameter_hash{'SetCallBacks'}{'update'})
333 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
338 0 0 unless $to
375 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
380 0 0 if ($self->wait_for_communication($wait_time))
386 0 0 if ($$parsed_communication{'message'}) { }
391 0 0 if (defined $val) { }
392 0 0 if (defined $got_message) { }
393 0 0 if ($got_message == 1) { }
429 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
433 0 0 defined $wait_time ? :
461 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
465 0 0 unless $force_send
467 0 0 if (time - $$self{'LAST_PRESENCE_SEND'} > 100 or $force_send)
487 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
495 0 0 if ref $buddy eq 'HASH'
516 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
551 0 0 unless my $stat = $connection->Connect(%params)
553 0 0 unless my(@res) = $connection->AuthSend('username', $username, 'password', $password, 'resource', $resource)
579 0 0 if (defined $RECEIVE_CALLBACK)
601 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
623 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
628 0 0 if ($$message{'message'}{'error'})
634 0 0 unless ($success)
676 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
680 0 0 if ($$communication{'presence'})
684 0 0 unless ($success)
693 0 0 if ($photo_location)
694 0 0 if (ref $photo_location eq 'ARRAY') { }
696 0 0 if ($$loc{'photo'})
701 0 0 if ($$photo_location{'photo'})
720 0 0 if ($$self{'DEBUG'})
740 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
746 0 0 if ($from_expression =~ m[^([^/]*)/(.*)$]) { }
771 0 0 unless (UNIVERSAL::isa($self, 'Net::XMPP::Client::GTalk'))
780 0 0 if (time - $$buddy{'presence_time'} < 700)
781 0 0 if ($$buddy{'from'} eq $$presence{'from'})
789 0 0 unless ($this_presence_processed)