Branch Coverage

blib/lib/Convos/Plugin/Helpers.pm
Criterion Covered Total %
branch 3 42 7.1


line true false branch
30 0 0 $url eq $c->req->url->path ? :
67 0 0 $target =~ /^[#&]/ ? :
86 0 0 if $cb
102 0 0 unless my $epoch_now = shift()
103 0 0 unless my $epoch_prev = shift()
129 0 0 if defined $$message{'message'}
130 0 0 if defined $$message{'user'}
139 0 0 unless --$$c{'format_conversation'}
153 0 0 if ($$cache{$user})
165 0 0 if ($id =~ /\@/) { }
0 0 elsif ($id) { }
209 42 0 $$c{'tx'} ? :
213 35 7 unless my $url = $ENV{'CONVOS_REDIS_URL'}
251 0 0 $$n{'target'} =~ /^[#&]/ ? :
253 0 0 if (not $$n{'is_channel'} and $nick_seen{$$n{'target'}}++)
260 0 0 unless $$n{'read'}
279 0 0 unless eval { do { $c->send($c->render_to_string(@_)->to_string) } }
295 0 0 if $timestamp > $now - 86400
325 0 0 if ($names and $$names[0]) { }
0 0 elsif ($network) { }
326 0 0 if (my($network, $target) = id_as($$names[0]))