Branch Coverage

blib/lib/POE/Component/AI/MegaHAL.pm
Criterion Covered Total %
branch 13 32 40.6


line true false branch
16 0 1 unless defined $params{'autosave'} and $params{'autosave'} eq '0'
20 1 0 ref $options eq 'HASH' ? :
43 0 4 if $self->{'shutdown'}
47 4 0 if (ref $_[10] eq 'HASH') { }
56 0 4 unless ($args->{'event'})
62 0 4 if $state =~ /^(do_reply|learn)$/ and not defined $args->{'text'}
64 0 4 if $state eq 'initial_greeting' and defined $args->{'text'}
66 0 4 if $state eq '_cleanup' and defined $args->{'text'}
73 4 0 if defined $self->{'wheel'}
81 0 1 if ($self->{'alias'}) { }
89 0 1 $^O eq 'MSWin32' ? :
119 0 1 if $self->{'debug'}
135 1 0 unless $self->{'alias'}
143 0 0 if ($^O eq 'MSWin32')
154 0 0 if ($@)
163 0 0 if $params{'AutoSave'}