XMPP/Error/Presence.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« XMPP/Error/Parser.pm ↑ Summary XMPP/Error/Register.pm »
1 package AnyEvent::XMPP::Error::Presence;
2 0 ▶use AnyEvent::XMPP::Error::Stanza;
Subroutine BEGIN: called CC=1 SCAR=2.6
3 use strict;
4 our @ISA = qw/AnyEvent::XMPP::Error::Stanza/;
5  
6 =head1 NAME
7  
8 AnyEvent::XMPP::Error::Presence - Presence errors
9  
10 Subclass of L<AnyEvent::XMPP::Error::Stanza>
11  
12 =cut
13  
14 sub string {
15 my ($self) = @_;
16  
17 sprintf "presence error: %s/%s (type %s): %s",
18 $self->code || '',
19 $self->condition || '',
20 $self->type,
21 $self->text
22 }
23  
24  
25 =head1 AUTHOR
26  
27 Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
28  
29 =head1 COPYRIGHT & LICENSE
30  
31 Copyright 2007, 2008 Robin Redeker, all rights reserved.
32  
33 This program is free software; you can redistribute it and/or modify it
34 under the same terms as Perl itself.
35  
36 =cut
37  
38 1; # End of AnyEvent::XMPP
« XMPP/Error/Parser.pm ↑ Summary XMPP/Error/Register.pm »