Branch Coverage

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


line true false branch
17 0 1 unless defined $params{'autosave'} and $params{'autosave'} eq '0'
21 1 0 ref $options eq 'HASH' ? :
44 0 4 if $$self{'shutdown'}
48 4 0 if (ref $_[10] eq 'HASH') { }
57 0 4 unless ($$args{'event'})
63 0 4 if $state =~ /^(do_reply|learn)$/ and not defined $$args{'text'}
65 0 4 if $state eq 'initial_greeting' and defined $$args{'text'}
67 0 4 if $state eq '_cleanup' and defined $$args{'text'}
74 4 0 if defined $$self{'wheel'}
82 0 1 if ($$self{'alias'}) { }
88 0 1 $^O eq 'MSWin32' ? :
120 0 1 if $$self{'debug'}
136 1 0 unless $$self{'alias'}
144 0 0 if ($^O eq 'MSWin32')
155 0 0 if ($@)
164 0 0 if $params{'AutoSave'}