lib/POE/Component/MessageQueue/Topic.pm

filter: Statementstmt 54.5% 6 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 1 / 5 Podpod 0.0% 0 / 4 totaltotal 35.0% 7 / 20 CC 2 SCAR 10.4
CC
2
Cov
55%
send
6.0
is_persistent
2.0
BEGIN
1.0
CRAP 2.8
« lib/POE/Component/MessageQueue/Queue.pm ↑ Summary lib/POE/Component/MessageQueue/Storage/Double.pm »
1 #
2 # Copyright 2007, 2008 Paul Driver <frodwith@gmail.com>
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17  
18 package POE::Component::MessageQueue::Topic;
19 16 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 16 with qw(POE::Component::MessageQueue::Destination);
22 16 __PACKAGE__->meta->make_immutable();
23  
24 sub send
25 {
26 0 ▶ my ($self, $message) = @_;
Subroutine send: not called CC=2 SCAR=17.9
Pod undocumented
27  
28 0 foreach my $subscriber ($self->all_subscriptions)
29 {
30 0 $self->dispatch_message($message, $subscriber);
31 }
32  
33 0 return;
34 }
35  
36 0 ▶sub is_persistent { return 0 }
Subroutine is_persistent: not called CC=1 SCAR=6.9
Pod undocumented
37  
38 # These do nothing now, but they may someday
39 ▶sub pump {}
Subroutine pump: not called CC=1 SCAR=0.0
Pod undocumented
40 ▶sub shutdown {}
Subroutine shutdown: not called CC=1 SCAR=0.0
Pod undocumented
41  
42 16 1;
43  
« lib/POE/Component/MessageQueue/Queue.pm ↑ Summary lib/POE/Component/MessageQueue/Storage/Double.pm »