XIRCD/Role.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
START
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package XIRCD::Role;
2 use strict;
3 use MooseX::POE::Role;
4 use XIRCD::Component;
5  
6 use Devel::Caller qw(caller_args);
7  
8 with qw(MooseX::POE::Aliased);
9  
10 has name => (
11 isa => 'Str',
12 is => 'rw',
13 );
14  
15 has channel => (
16 isa => 'Str',
17 is => 'rw',
18 );
19  
20 sub START {
21 my $self = shift;
22 $self->alias($self->name);
23 debug "start " . $self->name;
24  
25 post ircd => 'join_channel', $self->channel, $self->get_session_id;
26 yield 'start';
27 }
28  
29  
30  
31 1;