Branch Coverage

blib/lib/Text/Conversation.pm
Criterion Covered Total %
branch 38 98 38.7


line true false branch
95 0 3 if ($$self[7])
130 3 0 if ($addressee_text =~ /^\s*(\S+?)\s*[:,]\s+/ or $addressee_text =~ /^\s*(\S+?)-*\s+/ or $addressee_text =~ /^\s*t\s+(\S+?)\s+/)
136 0 3 if ($$self[7])
144 0 3 if ($best_nick_score > $best_addressee_score)
145 0 0 if ($$self[7])
158 3 0 if ($addressee_text =~ /[\s,]*(\S+?)[.?!'")\]\}\s]*$/)
160 0 3 if ($$self[7])
168 0 3 if ($best_nick_score > $best_addressee_score)
169 0 0 if ($$self[7])
184 0 0 if ($$self[7])
189 0 0 if ($best_nick_score > $best_addressee_score)
190 0 0 if ($$self[7])
201 0 3 if ($$self[7])
231 0 3 if $them eq $best_addressee
253 1 2 if ($score > $best_score)
272 0 3 if ($$self[7])
277 0 3 if ($nick eq $them) { }
278 0 0 if ($seen_other_factor)
311 3 0 unless (exists $$self[2]{$nick})
315 0 3 if (defined $addressee and not exists $$self[2]{$addressee})
330 1 2 if (defined $addressee)
331 0 1 if (exists $$self[2]{$addressee}{$nick}) { }
332 0 0 if ($$self[2]{$addressee}{$nick} < $confidence)
340 0 1 if (exists $$self[2]{$nick}{$addressee}) { }
341 0 0 if ($$self[2]{$nick}{$addressee} < $confidence)
354 0 0 if ($$self[2]{$me}{$them} < 1)
375 0 3 if (exists $$self[2]{$speaker} and exists $$self[2]{$speaker}{$other})
390 0 3 if (exists $$self[2]{$other} and exists $$self[2]{$other}{$speaker})
404 3 0 unless $total_total
418 1 8 unless length $fixed_nick
431 2 4 unless @known_nicks
445 4 0 unless @found
447 0 0 if ($$self[7])
456 0 0 if ($$self[7])
462 0 0 unless @found == @proximities
471 0 0 if $score < $best_score
473 0 0 if ($$self[7])
481 0 0 if ($best_nick)
482 0 0 if ($$self[7])
488 0 0 if ($$self[7])
518 1 2 if ($referent and exists $$self[3]{$referent})
583 9 2 unless exists $$their_words{$my_word}
599 1 2 if (defined $index)
605 0 1 if ($addressee eq $nick)
606 0 0 if ($self->_id_exists($referent)) { }
616 1 2 if (defined $addressee) { }
623 0 3 if ($$self[7])
685 0 0 if $$self[5]{$word} > 0
699 0 2 if (exists $$self[0]{$stem})