Branch Coverage

blib/lib/Chatbot/Alpha.pm
Criterion Covered Total %
branch 0 176 0.0


line true false branch
46 0 0 if ($$self{'debug'} == 1)
58 0 0 unless opendir DIR, $dir
60 0 0 if (defined $type)
61 0 0 unless ($file =~ /\.$type$/i)
67 0 0 unless $load == 1
78 0 0 unless (defined $code)
90 0 0 unless defined $stream
91 0 0 if defined $file
93 0 0 unless defined $file
99 0 0 if ($stream != 1) { }
101 0 0 if ($$self{'verify'} == 1)
105 0 0 unless open FILE, "$file"
127 0 0 if length $line == 0
128 0 0 if $line =~ m[^/]
138 0 0 if ($command eq '>') { }
0 0 elsif ($command eq '<') { }
0 0 elsif ($command eq '+') { }
0 0 elsif ($command eq '~') { }
0 0 elsif ($command eq '%') { }
0 0 elsif ($command eq '-') { }
0 0 elsif ($command eq '^') { }
0 0 elsif ($command eq '@') { }
0 0 elsif ($command eq '*') { }
0 0 elsif ($command eq '&') { }
0 0 elsif ($command eq '#') { }
142 0 0 if ($type eq 'topic')
150 0 0 if ($data eq 'topic' or $data eq '/topic')
157 0 0 if ($inReply == 1)
159 0 0 if ($topic =~ /^_that_/i)
185 0 0 if ($inReply == 1)
187 0 0 if ($topic =~ /^_that_/i)
211 0 0 if ($inReply != 1)
225 0 0 if ($inReply != 1)
247 0 0 if ($inReply != 1)
259 0 0 if ($inReply != 1)
274 0 0 if ($inReply != 1)
290 0 0 if ($inReply != 1)
314 0 0 unless exists $$self{'_replies'}
317 0 0 if (exists $$self{'_array'})
357 0 0 if ($key =~ /\*/) { }
363 0 0 unless length $word
364 0 0 unless ($word =~ /\*/)
373 0 0 if (exists $$sort{$cnt}) { }
420 0 0 unless defined $var
421 0 0 unless defined $value
429 0 0 unless defined $var
448 0 0 unless (exists $$self{'_array'})
453 0 0 if ($$self{'loops'} >= 15)
463 0 0 unless (exists $$self{'_replies'})
474 0 0 if ($msg =~ /^$in$/i)
490 0 0 unless (exists $$self{'_array'})
495 0 0 unless (exists $$self{'users'}{$id}{'history'})
503 0 0 if ($$self{'loops'} >= 15)
519 0 0 unless exists $$self{'users'}{$id}{'last'}
520 0 0 unless exists $$self{'users'}{$id}{'that'}
527 0 0 unless (exists $$self{'_replies'})
542 0 0 if ($isThat != 1 and length $lastSent > 0 and exists $$self{'_replies'}{$thatTopic}{$msg})
549 0 0 unless $topic eq $$self{'users'}{$id}{'topic'}
557 0 0 if (exists $$self{'_replies'}{$topic}{$in}{'convo'})
562 0 0 if $found_convo == 1
570 0 0 if ($$self{'users'}{$id}{'last'} =~ /^$in$/i)
571 0 0 unless (exists $$self{'_replies'}{$topic}{$in}{'convo'}{$$self{'users'}{$id}{'hold'}})
586 0 0 if defined $reply
588 0 0 if ($msg =~ /^$in$/i)
595 0 0 if (exists $$self{'_replies'}{$topic}{$in}{'redirect'})
604 0 0 if exists $star{1}
613 0 0 if (exists $$self{'_replies'}{$topic}{$in}{'conditions'})
619 0 0 if defined $reply
627 0 0 if (exists $$self{'vars'}{$var})
630 0 0 if ($var =~ /^[0-9]/ and $$self{'vars'}{$var} eq $value or $$self{'vars'}{$var} eq $value)
640 0 0 if defined $reply
643 0 0 unless exists $$self{'_replies'}{$topic}{$in}{1}
647 0 0 if $key =~ /[^0-9]/
655 0 0 if ($$self{'loops'} >= 20)
662 0 0 if (exists $$self{'_replies'}{$topic}{$in}{'system'}{'codes'})
672 0 0 if ($isThat == 1)
678 0 0 if (defined $reply) { }
684 0 0 if exists $star{1}
685 0 0 if exists $star{'msg'}
689 0 0 if ($$self{'users'}{$id}{'topic'} ne 'random') { }
690 0 0 if (exists $$self{'_array'}{$$self{'users'}{$id}{'topic'}}) { }
718 0 0 if ($reply =~ /\{topic=(.*?)\}/i)
720 0 0 if ($to eq 'random') { }
747 0 0 if ($text =~ /\|/) { }
791 0 0 if ($type eq 'uppercase') { }
0 0 elsif ($type eq 'lowercase') { }
0 0 elsif ($type eq 'sentence') { }
0 0 elsif ($type eq 'formal') { }