Branch Coverage

blib/lib/POE/Component/Server/POP3.pm
Criterion Covered Total %
branch 30 76 39.4


line true false branch
17 1 0 unless $opts{'version'}
18 1 0 unless defined $opts{'handle_connects'} and not $opts{'handle_connects'}
19 1 0 unless defined $opts{'hostname'}
22 1 0 ref $options eq 'HASH' ? :
42 0 1 unless $_[0]{'listener'}
48 0 8 unless $wheel_id and defined $self->{'clients'}{$wheel_id}
56 1 1 unless grep {$_ eq $cmd;} @{$$self{'cmds'};}
68 0 1 if ($self->{'alias'}) { }
74 1 0 if ($kernel != $sender)
89 1 0 defined $self->{'address'} ? :
1 0 defined $self->{'port'} ? :
115 0 1 unless $wheel
142 0 2 unless $self->_conn_exists($id)
148 0 2 unless $cmd
149 1 1 unless ($self->_valid_cmd($cmd))
154 1 0 if $cmd eq 'quit'
161 0 0 unless $self->_conn_exists($id)
169 0 3 unless $self->_conn_exists($id)
170 2 1 unless $self->{'clients'}{$id}{'quit'}
178 0 0 unless $self->_conn_exists($id)
190 1 0 unless $self->{'alias'}
200 0 0 unless (@events)
208 0 0 unless /^_/
211 0 0 unless ($self->{'sessions'}{$sender_id}{'refcnt'}++ or $session == $sender)
224 0 0 unless (@events)
238 0 0 unless /^_/
240 0 0 unless ($blah)
244 0 0 if (--$self->{'sessions'}{$sender_id}{'refcnt'} <= 0)
246 0 0 unless ($session == $sender)
258 1 0 if (--$self->{'sessions'}{$session_id}{'refcnt'} <= 0)
260 1 0 unless $session_id eq $pop3d_id
291 0 3 if $self->_pluggable_process('POP3D', $event, \(@args), \@extra_args) == 4
293 0 3 if scalar @extra_args
308 0 0 unless $self->_conn_exists($id)
320 0 3 unless $self->_conn_exists($id)
321 0 3 unless defined $output
323 0 3 if $self->_pluggable_process('POP3C', 'response', $id, \$output) == 4
332 0 1 unless $self->{'handle_connects'}